|Test2::Event::Info(3perl)||Perl Programmers Reference Guide||Test2::Event::Info(3perl)|
Test2::Event::Info - Info event base class
Successor for note and diag events. This event base class supports multiple formats. This event makes it possible to send additional information such as color and highlighting to the harness.
use Test2::API::Context qw/context/; $ctx->info($obj, diagnostics => $bool);
Format will be passed in to "render()" and "summary()" as a string. Any string is considered valid, if your event does not recognize the format it should fallback to 'text'.
- Plain and ordinary text.
- Text that may include ansi sequences such as colors.
- HTML formatted text.
- $bool = $info->diagnostics()
- True if this info is essential for diagnostics. The implication is that diagnostics will got to STDERR while everything else goes to STDOUT, but that is formatter/harness specific.
The source code repository for Test2 can be found at http://github.com/Test-More/test-more/.
Copyright 2016 Chad Granum <email@example.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.