Test::S...er::TAP(3)
π NAME
Test::Stream::Formatter::TAP β the standard TAP formatter, bestie. That's it, that's the whole vibe.
π¨ DEPRECATED π¨
Okay so listen. This whole distribution is deprecated. Like, it's been replaced by Test2, Test2::Suite, and Test2::Workflow. It's giving "we still love you but you gotta move on."
If you need to migrate, go read Test::Stream::Manual::ToTest2 β it's literally a whole conversion guide, slay.
β¨ DESCRIPTION β¨
This is the thing that catches events and turns them into TAP. That's the job. That's the assignment. Periodt.
π SYNOPSIS π
use Test::Stream::Formatter::TAP;
my $tap = Test::Stream::Formatter::TAP->new();
# Switch to utf8
$tap->encoding('utf8');
$tap->write($event, $number); # Output an event
π«Ά EXPORTS π«Ά
OUT_STDOUT_ERROUT_TODO
These are constants that name which filehandle is which, okay? Events use them to send text to the right filehandle. Very demure, very mindful, very "text goes where it belongs."
π METHODS π
$bool = $tap->no_numbers$tap->set_no_numbers($bool)
Turns the numbers on and off. That's it. That's the whole thing.
$bool = $tap->no_header($bool)$tap->set_no_header($bool)
When this is true, the plan will not be rendered. No plan, no problem π
$bool = $tap->no_diag$tap->set_no_diag($bool)
When this is true, diagnostics will not be rendered. They simply do not make the cut.
$arrayref = $tap->handles$tap->set_handles(\@handles);
You can get or set the filehandles with this. The indexes are identified by the OUT_STD, OUT_ERR, and OUT_TODO constants. Iykyk.
$encoding = $tap->encoding$tap->encoding($encoding)
Get or set the encoding. By default no encoding is set, so 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 were birthed in the making of this encoding change, fr fr.
$tap->write($e, $num)
Writes an event to the console. Iconic behaviour, honestly.
π SOURCE π
The source code repository for Test::Stream lives at http://github.com/Test-More/Test-Stream/. Go be nosy, you're welcome.
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
πΈ AUTHORS πΈ
- Chad Granum
<exodist@cpan.org> - Kent Fredric
<kentnl@cpan.org>
β COPYRIGHT β
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
And that's a wrap, babe π¦ this was Test::S...er::TAP(3) from the User Contributed Perl Documentation girlies, running on perl v5.42.0, dated 2025-07-25. Go forth and format your TAP π
π¦ where this page comes from
- fedora 43: perl-Test-Stream 1.302027-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms