1 package Test2::EventFacet::Render;
5 our $VERSION = '1.302181';
9 BEGIN { require Test2::EventFacet; our @ISA = qw(Test2::EventFacet) }
10 use Test2::Util::HashBase qw{ -tag -facet -mode };
22 Test2::EventFacet::Render - Facet that dictates how to render an event.
26 This facet is used to dictate how the event should be rendered by the standard
27 test2 rendering tools. If this facet is present then ONLY what is specified by
28 it will be rendered. It is assumed that anything important or note-worthy will
29 be present here, no other facets will be considered for rendering/display.
31 This facet is a list type, you can add as many items as needed.
37 =item $string = $render->[#]->{details}
39 =item $string = $render->[#]->details()
41 Human readable text for display.
43 =item $string = $render->[#]->{tag}
45 =item $string = $render->[#]->tag()
47 Tag that should prefix/identify the main text.
49 =item $string = $render->[#]->{facet}
51 =item $string = $render->[#]->facet()
53 Optional, if the display text was generated from another facet this should
54 state what facet it was.
56 =item $mode = $render->[#]->{mode}
58 =item $mode = $render->[#]->mode()
64 Calculated means the facet was generated from another facet. Calculated facets
65 may be cleared and regenerated whenever the event state changes.
69 Replace means the facet is intended to replace the normal rendering of the
78 The source code repository for Test2 can be found at
79 F<http://github.com/Test-More/test-more/>.
85 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
93 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
99 Copyright 2020 Chad Granum E<lt>exodist@cpan.orgE<gt>.
101 This program is free software; you can redistribute it and/or
102 modify it under the same terms as Perl itself.
104 See F<http://dev.perl.org/licenses/>