1Test2::EventFacet::AsseUrste(r3)Contributed Perl DocumenTteastti2o:n:EventFacet::Assert(3)
2
3
4
6 Test2::EventFacet::Assert - Facet representing an assertion.
7
9 The assertion facet is provided by any event representing an assertion
10 that was made.
11
13 $string = $assert->{details}
14 $string = $assert->details()
15 Human readable description of the assertion.
16
17 $bool = $assert->{pass}
18 $bool = $assert->pass()
19 True if the assertion passed.
20
21 $bool = $assert->{no_debug}
22 $bool = $assert->no_debug()
23 Set this to true if you have provided custom diagnostics and do not
24 want the defaults to be displayed.
25
26 $int = $assert->{number}
27 $int = $assert->number()
28 (Optional) assertion number. This may be omitted or ignored. This
29 is usually only useful when parsing/processing TAP.
30
31 Note: This is not set by the Test2 system, assertion number is not
32 known until AFTER the assertion has been processed. This attribute
33 is part of the spec only for harnesses.
34
36 The source code repository for Test2 can be found at
37 http://github.com/Test-More/test-more/.
38
40 Chad Granum <exodist@cpan.org>
41
43 Chad Granum <exodist@cpan.org>
44
46 Copyright 2019 Chad Granum <exodist@cpan.org>.
47
48 This program is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51 See http://dev.perl.org/licenses/
52
53
54
55perl v5.30.2 2020-03-31 Test2::EventFacet::Assert(3)