Test2::...::Assert(3)
π NAME π
Test2::EventFacet::Assert β Facet representing an assertion. This is a User Contributed Perl Documentation page, and yes bestie, the title is right there in the name. Iykyk. π«Ά
β¨ DESCRIPTION β¨
Okay so the assertion facet is provided by any event representing an assertion that was made. Itβs giving βproof that somebody asserted somethingβ energy, and itβs lowkey iconic. π
π FIELDS π
$string = $assert->{details}and$string = $assert->details()β Human readable description of the assertion. Itβs the little explanation of what went down, bestie. π¦$bool = $assert->{pass}and$bool = $assert->pass()β True if the assertion passed. Thatβs the vibe check, and when itβs true it absolutely ate. π₯$bool = $assert->{no_debug}and$bool = $assert->no_debug()β Set this to true if you have provided custom diagnostics and do not want the defaults to be displayed. So if youβre doing your own debug situation, flip this on and tell the default diagnostics to take a little nap. π$int = $assert->{number}and$int = $assert->number()β (Optional) assertion number. This may be omitted or ignored. This is usually only useful when parsing/processing TAP. Ngl, itβs a niche little field, but sheβs valid. πΈ
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. Caveat received, no cap. π
π SOURCE π
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go look, bestie, itβs right there. β¨
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β carrying the maintainer crown. π«Ά
π§ AUTHORS π§
Chad Granum <exodist@cpan.org> β author credit, slay. π
β COPYRIGHT β
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Periodt. π
See <https://dev.perl.org/licenses/>.
Signed, sealed, delivered: perl v5.42.0 on 2025-07-28, and this page is Test2::...::Assert(3). Byeee π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms