1 package Test2::Event::Diag;
5 our $VERSION = '1.302071';
8 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
9 use Test2::Util::HashBase qw/message/;
12 $_[0]->{+MESSAGE} = 'undef' unless defined $_[0]->{+MESSAGE};
15 sub summary { $_[0]->{+MESSAGE} }
29 Test2::Event::Diag - Diag event type
33 Diagnostics messages, typically rendered to STDERR.
37 use Test2::API qw/context/;
38 use Test2::Event::Diag;
41 my $event = $ctx->diag($message);
49 The message for the diag.
55 The source code repository for Test2 can be found at
56 F<http://github.com/Test-More/test-more/>.
62 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
70 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
76 Copyright 2016 Chad Granum E<lt>exodist@cpan.orgE<gt>.
78 This program is free software; you can redistribute it and/or
79 modify it under the same terms as Perl itself.
81 See F<http://dev.perl.org/licenses/>