Test::...stener(3pm)
πΈ Test::Unit::Listener β the tea β
okay bestie, so this is Test::Unit::Listener, a 3pm page from the User Contributed Perl Documentation collection. yeah the header chops it up all weird like Test::...stener(3pm) but it's the same file, don't worry π
β¨ NAME β¨
Test::Unit::Listener β unit testing framework abstract base class π
π¦ SYNOPSIS π¦
This class is not intended to be used directly
no cap, that's literally the whole synopsis. she said don't touch me directly and she MEANT it π
π DESCRIPTION π
okay so here's the vibe: this class is what the framework uses to define the interface of a test listener. it's an abstract base class, and it gets implemented by the test runners. so like, she's the blueprint, not the building ποΈβ¨
and here's the funny part β bc of the nature of the Perl OO implementation, this class is not really needed. like at all. she's not doing heavy lifting, she's serving as documentation of the interface. she's a mood board. she's the Pinterest inspo. iconic honestly π
now the actual tea, and this is the part you gotta remember:
each of the add_ methods gets two arguments: "test" and "exception".
- the
testis aTest::Unit::Testπ§ͺ - the
exceptionis aTest::Unit::Exceptionπ
and typically? you wanna display test->name() and keep the rest as details. that's the move. that's it. display the name, stash the rest π
π AUTHOR π
Copyright (c) 2000-2002, 2005 the PerlUnit Development Team (see Test::Unit or the AUTHORS file included in this distribution).
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π«Ά
π₯ SEE ALSO π₯
Test::Unit::ExceptionTest::Unit::TestRunnerTest::Unit::TkTestRunner
and that's the whole page bestie, we ate and left no crumbs β¨
generated from perl v5.40.1 dated 2026-04-05 β catch you in the next manpage, mwah πππ§
π¦ where this page comes from
- ubuntu stonking: libtest-unit-perl 0.30-1 Β· Artistic-1.0-Perl OR 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