TEST2::FORMATTER::TAP(3pm)
π Test2::Formatter::TAP(3pm) β Perl Programmers Reference Guide
πΈ NAME β¨
Test2::Formatter::TAP β Standard TAP formatter. π
β¨ DESCRIPTION β¨
Okay so bestie, this is what takes events and turns them into TAP. That's literally the whole vibe. π¦
π SYNOPSIS π
use Test2::Formatter::TAP;
my $tap = Test2::Formatter::TAP->new();
# Switch to utf8
$tap->encoding('utf8');
$tap->write($event, $number); # Output an event
π METHODS π
$bool = $tap->no_numbers/$tap->set_no_numbers($bool)β use this to turn numbers on and off. π$arrayref = $tap->handles/$tap->set_handles(\@handles);β can be used to get/set the filehandles. Indexes are identified by theOUT_STDandOUT_ERRconstants. π$encoding = $tap->encoding/$tap->encoding($encoding)β get or set the encoding. By default no encoding is set, the original settings ofSTDOUTandSTDERRare used.
This directly modifies the stored filehandles, it does not create new ones. π«Ά
$tap->write($e, $num)β write an event to the console. β¨
π₯ SOURCE π₯
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π«Ά AUTHORS π«Ά
- Chad Granum
<exodist@cpan.org> - Kent Fredric
<kentnl@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.
See <https://dev.perl.org/licenses/>. π
π okay that's the whole page, bestie! cute little footer sign-off: this is perl v5.42.3, dated 2026-11-03, and it's the Test2::Formatter::TAP(3pm) manual page. mwah πβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl 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