TEST2::EVENTFACET::ASSERT(3perl)
π Test2::EventFacet::Assert β the Perl Programmers Reference Guide, but make it a group chat π
okay bestie, so this is the 3perl section of the manual for Test2::EventFacet::Assert, and ngl it's a tiny little file that does one extremely important job π
β¨ NAME β¨
Test2::EventFacet::Assert β it's the facet that represents an assertion π
πΈ DESCRIPTION πΈ
so like. the assertion facet? it's given to you by any event that's representing an assertion that was made. that's it. that's the whole vibe check β
π¦ FIELDS π¦
these are the little attributes you can read off the facet, and every single one comes in both hashref-flavored and method-flavored π
$string = $assert->{details}/$string = $assert->details()β a human readable description of the assertion, like the words a person would actually say about it π¬$bool = $assert->{pass}/$bool = $assert->pass()βTrueif the assertion passed. slay. if it didn't passβ¦ well, π$bool = $assert->{no_debug}/$bool = $assert->no_debug()β set this to true when you've already provided your own custom diagnostics and you do not want the defaults showing up. it's giving "i got this, thanks" π$int = $assert->{number}/$int = $assert->number()β (Optional) the assertion number. this one may be omitted or ignored, no big deal. it's usually only useful when you're parsing/processing TAP π§
β οΈ Note: this is not set by the Test2 system β the assertion number is not known until AFTER the assertion has been processed. this attribute is part of the spec only for harnesses. so don't go looking for it thinking Test2 wrote it for you, bestie, it didn't π
π SOURCE π
the source code repository for Test2 lives right here:
<https://github.com/Test-More/test-more/>
go forth and read the code π₯
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
π 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/>
and that's the whole page, queen π«Ά this was Test2:...:Assert(3perl) from perl v5.44.0, dated 2026-10-17 β go assert something iconic today, ily ππΈβ¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms