1Test2::Event::Diag(3) User Contributed Perl DocumentationTest2::Event::Diag(3)
2
3
4
6 Test2::Event::Diag - Diag event type
7
9 Diagnostics messages, typically rendered to STDERR.
10
12 use Test2::API qw/context/;
13 use Test2::Event::Diag;
14
15 my $ctx = context();
16 my $event = $ctx->diag($message);
17
19 $diag->message
20 The message for the diag.
21
23 The source code repository for Test2 can be found at
24 http://github.com/Test-More/test-more/.
25
27 Chad Granum <exodist@cpan.org>
28
30 Chad Granum <exodist@cpan.org>
31
33 Copyright 2020 Chad Granum <exodist@cpan.org>.
34
35 This program is free software; you can redistribute it and/or modify it
36 under the same terms as Perl itself.
37
38 See http://dev.perl.org/licenses/
39
40
41
42perl v5.32.0 2020-10-15 Test2::Event::Diag(3)