Test2::...ter::TAP(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

🌸 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 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 was perl v5.42.0, dated 2025-07-28, for Test2::...ter::TAP(3). Byeee! πŸ’–βœ¨
πŸ“¦ where this page comes from