Test2::Event::Info(3pm)

Test2::Event::Info3pm

Info event base class

Usage

    use Test2::API::Context qw/context/;
    $ctx->info($obj, diagnostics => $bool);

Overview

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.

Formats

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'.

'text'

Plain and ordinary text.

'ansi'

Text that may include ansi sequences such as colors.

'html'

HTML formatted text.

Accessors

$bool = $info->diagnostics()
$info->set_diagnostics($bool)

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.

Source

The source code repository for Test2 can be found at http://github.com/Test-More/test-more/.

Maintainers

Chad Granum <[email protected]>

Authors

Chad Granum <[email protected]>

From libtest-simple-perl 1.302075-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.