1 package Test2::EventFacet::Assert;
5 our $VERSION = '1.302100';
7 BEGIN { require Test2::EventFacet; our @ISA = qw(Test2::EventFacet) }
8 use Test2::Util::HashBase qw{ -pass -no_debug -number };
20 Test2::EventFacet::Assert - Facet representing an assertion.
24 The assertion facet is provided by any event representing an assertion that was
31 =item $string = $assert->{details}
33 =item $string = $assert->details()
35 Human readable description of the assertion.
37 =item $bool = $assert->{pass}
39 =item $bool = $assert->pass()
41 True if the assertion passed.
43 =item $bool = $assert->{no_debug}
45 =item $bool = $assert->no_debug()
47 Set this to true if you have provided custom diagnostics and do not want the
48 defaults to be displayed.
50 =item $int = $assert->{number}
52 =item $int = $assert->number()
54 (Optional) assertion number. This may be omitted or ignored. This is usually
55 only useful when parsing/processing TAP.
57 B<Note>: This is not set by the Test2 system, assertion number is not known
58 until AFTER the assertion has been processed. This attribute is part of the
59 spec only for harnesses.
65 The source code repository for Test2 can be found at
66 F<http://github.com/Test-More/test-more/>.
72 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
80 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
86 Copyright 2016 Chad Granum E<lt>exodist@cpan.orgE<gt>.
88 This program is free software; you can redistribute it and/or
89 modify it under the same terms as Perl itself.
91 See F<http://dev.perl.org/licenses/>