Test2::...ter::TAP(3)
πΈ NAME πΈ
Test2::Formatter::TAP β Standard TAP formatter. Okay bestie, welcome to the Test2::Formatter::TAP(3) page from User Contributed Perl Documentation. It's literally the standard TAP formatter, no cap. π
β¨ DESCRIPTION β¨
This is what takes events and turns them into TAP. That's the whole vibe: events in, TAP out. It's lowkey iconic. π
π SYNOPSIS π
Here's the starter pack, bestie β copy it exactly:
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. Simple as that, bestie.
π¦ $arrayref = $tap->handles / $tap->set_handles(\@handles); π¦
Can be used to get/set the filehandles. Indexes are identified by the OUT_STD and OUT_ERR constants. iykyk
π $encoding = $tap->encoding / $tap->encoding($encoding) π
Get or set the encoding. By default no encoding is set, the original settings of STDOUT and STDERR are used.
Heads up, bestie: this directly modifies the stored filehandles, it does not create new ones. No new filehandles are born here.
β $tap->write($e, $num) β
Write an event to the console. That's it, that's the method.
π₯ SOURCE π₯
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go peek, bestie.
π 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/>. Legal cutie moment.
π«Ά Okay that's the whole page, bestie. This wasperl v5.42.0, dated2025-07-28, forTest2::...ter::TAP(3). Byeee! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 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