1 package Test2::Event::Diag;
5 our $VERSION = '1.302122';
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} }
22 my $out = $self->common_facet_data;
28 details => $self->{+MESSAGE},
45 Test2::Event::Diag - Diag event type
49 Diagnostics messages, typically rendered to STDERR.
53 use Test2::API qw/context/;
54 use Test2::Event::Diag;
57 my $event = $ctx->diag($message);
65 The message for the diag.
71 The source code repository for Test2 can be found at
72 F<http://github.com/Test-More/test-more/>.
78 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
86 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
92 Copyright 2018 Chad Granum E<lt>exodist@cpan.orgE<gt>.
94 This program is free software; you can redistribute it and/or
95 modify it under the same terms as Perl itself.
97 See F<http://dev.perl.org/licenses/>