1 package Test2::EventFacet::Info;
5 our $VERSION = '1.302122';
9 BEGIN { require Test2::EventFacet; our @ISA = qw(Test2::EventFacet) }
10 use Test2::Util::HashBase qw{-tag -debug -important};
22 Test2::EventFacet::Info - Facet for information a developer might care about.
26 This facet represents messages intended for humans that will help them either
27 understand a result, or diagnose a failure.
31 This facet appears in a list instead of being a single item.
37 =item $string_or_structure = $info->{details}
39 =item $string_or_structure = $info->details()
41 Human readable string or data structure, this is the information to display.
42 Formatters are free to render the structures however they please. This may
43 contain a blessed object.
45 =item $short_string = $info->{tag}
47 =item $short_string = $info->tag()
49 Short tag to categorize the info. This is usually 10 characters or less,
50 formatters may truncate longer tags.
52 =item $bool = $info->{debug}
54 =item $bool = $info->debug()
56 Set this to true if the message is critical, or explains a failure. This is
57 info that should be displayed by formatters even in less-verbose modes.
59 When false the information is not considered critical and may not be rendered
60 in less-verbose modes.
62 =item $bool = $info->{important}
64 =item $bool = $info->important
66 This should be set for non debug messages that are still important enough to
67 show when a formatter is in quiet mode. A formatter should send these to STDOUT
68 not STDERR, but should show them even in non-verbose mode.
74 The source code repository for Test2 can be found at
75 F<http://github.com/Test-More/test-more/>.
81 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
89 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
95 Copyright 2018 Chad Granum E<lt>exodist@cpan.orgE<gt>.
97 This program is free software; you can redistribute it and/or
98 modify it under the same terms as Perl itself.
100 See F<http://dev.perl.org/licenses/>