TAP::FORMATTER::SESSION(3perl)
β¨ NAME β¨
TAP::Formatter::Session β bestie, this is the abstract base class for harness output delegate π
it's the blueprint, not the finished product, okay?
πΈ VERSION πΈ
Version 3.52 β yes queen, that's the one π
π METHODS π
π«Ά Class Methods
β new
my %args = (
formatter => $self,
)
my $harness = TAP::Formatter::Console::Session->new( \%args );
The constructor hands you back a shiny new TAP::Formatter::Console::Session object. iconic behaviour, honestly π
Here's what you can slide into %args:
formatterparsernameshow_count
π header
Output test preamble β¨ it's giving opening credits, lowkey.
π result
Called by the harness for each line of TAP it receives. every single one, no skips, fr fr.
π¦ close_test
Called to close a test session π wrap it up bestie.
π
clear_for_close
Called by close_test to clear the line showing test progress, or the parallel test ruler, prior to printing the final test result. gotta wipe the slate clean before the big reveal, yk? β¨
πΈ time_report
Return a formatted string about the elapsed (wall-clock) time and about the consumed CPU time β±οΈ the receipts, basically.
okay that's the whole page bestie, every method accounted for, no cap π«Ά
signing off from perl v5.44.0, dated 2026-10-17 β mwah, slay, go write some tests ππ
β¨
π¦ 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