Test::...Wrapper(3pm)
π Test::...Wrapper(3pm) π
okay bestie so the manual name is Test::...Wrapper(3pm) and it's part of the User Contributed Perl Documentation β and listen, this page is short but it's iconic, so let's get into it π«Ά
β¨ NAME β¨
Test::Run::Straps::EventWrapper β literally just a wrapper for a TAP::Parser::Result subclass that delegates to its methods and has its own methods. best of both worlds, no cap π
πΈ DESCRIPTION πΈ
okay so here's the vibe. TAP::Parser's next() method returns a sub-class of TAP::Parser::Result. cute, right? but plot twist β we need to define our own methods on those objects. π
and the problem? we can't inherit from all the sub-classes. so instead we made this class, which:
- holds an instance of the actual events π
- delegates some methods to it π¦
- and defines some of its own methods β¨
it's giving "we couldn't have it all so we built it ourselves" and honestly? main character energy. π
π« $event->is_pass() π«
returns whether the event can be considered a passed event. always returns a scalar boolean β no ambiguity, no drama, just a tidy little boolean bestie π
π« $self->get_next_test_number() π«
if this event is a test, then it returns the next expected test number. otherwise it returns undef. that's it. that's the whole method. π§
π₯ SEE ALSO π₯
Test::Run::StrapsTest::Run::ObjTest::Run::Core
go read those too, iykyk π
π LICENSE π
this file is licensed under the MIT X11 License:
http://www.opensource.org/licenses/mit-license.php
π AUTHOR π
Shlomi Fish, <http://www.shlomifish.org/>.
and that's the whole page bestie!! π this was written by perl v5.42.0 and dated 2025-07-25, so if you're reading this from the futureβ¦ hi, slay, and also, Test::...Wrapper(3pm) says hey. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Test-Run 0.0306-3.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms