Test::More::Prefix - Prefix some test output
Inject a prefix in to Test::Builder's informational output. Useful for providing context in noisy and repetitive tests
use Test::More; use Test::More::Prefix qw/test_prefix/; note "Bar"; # Print '# Bar' test_prefix("Foo"); note "Baz"; # Print '# Foo: Baz' test_prefix(''); note "Bat"; # Print '# Bat'
For versions of Test::Simple which use this new-fangled Test::Stream stuff, we wrap setting of TB2::Event::Log's
message attribute to prepend the prefix. This means that more of the possible output contains the prefix.
Set the prefix. Accepts a string.
Peter Sergeant -
firstname.lastname@example.org on behalf of Net-A-Porter.