Test2::EventFacet::Assert(3) User Contributed Perl Documentation Test2::EventFacet::Assert(3)

# [NAME](#NAME)

Test2::EventFacet::Assert - Facet representing an assertion.

# [DESCRIPTION](#DESCRIPTION)

The assertion facet is provided by any event representing an assertion that was made.

# [FIELDS](#FIELDS)

$string = $assert-&gt;{details}

$string = $assert-&gt;**details()**

Human readable description of the assertion.

$bool = $assert-&gt;{pass}

$bool = $assert-&gt;**pass()**

True if the assertion passed.

$bool = $assert-&gt;{no\_debug}

$bool = $assert-&gt;**no\_debug()**

Set this to true if you have provided custom diagnostics and do not want the defaults to be displayed.

$int = $assert-&gt;{number}

$int = $assert-&gt;**number()**

(Optional) assertion number. This may be omitted or ignored. This is usually only useful when parsing/processing TAP.

**Note**: This is not set by the Test2 system, assertion number is not known until AFTER the assertion has been processed. This attribute is part of the spec only for harnesses.

# [SOURCE](#SOURCE)

The source code repository for Test2 can be found at &lt;https://github.com/Test-More/test-more/&gt;.

# [MAINTAINERS](#MAINTAINERS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad)

# [AUTHORS](#AUTHORS)

[Chad Granum &lt;exodist@cpan.org&gt;](#Chad~2)

# [COPYRIGHT](#COPYRIGHT)

Copyright Chad Granum &lt;exodist@cpan.org&gt;.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See &lt;https://dev.perl.org/licenses/&gt;

2026-10-26 perl v5.44.0

---

Document: Test2::EventFacet::Assert(3pm) from perl-test-simple 1.302226-r2 (Chainguard OS)
Source: https://github.com/Test-More/test-more
