1Test2::Formatter::TAP(3U)ser Contributed Perl DocumentatiToenst2::Formatter::TAP(3)
2
3
4

NAME

6       Test2::Formatter::TAP - Standard TAP formatter
7

DESCRIPTION

9       This is what takes events and turns them into TAP.
10

SYNOPSIS

12           use Test2::Formatter::TAP;
13           my $tap = Test2::Formatter::TAP->new();
14
15           # Switch to utf8
16           $tap->encoding('utf8');
17
18           $tap->write($event, $number); # Output an event
19

METHODS

21       $bool = $tap->no_numbers
22       $tap->set_no_numbers($bool)
23           Use to turn numbers on and off.
24
25       $arrayref = $tap->handles
26       $tap->set_handles(\@handles);
27           Can be used to get/set the filehandles. Indexes are identified by
28           the "OUT_STD" and "OUT_ERR" constants.
29
30       $encoding = $tap->encoding
31       $tap->encoding($encoding)
32           Get or set the encoding. By default no encoding is set, the
33           original settings of STDOUT and STDERR are used.
34
35           This directly modifies the stored filehandles, it does not create
36           new ones.
37
38       $tap->write($e, $num)
39           Write an event to the console.
40

SOURCE

42       The source code repository for Test2 can be found at
43       http://github.com/Test-More/test-more/.
44

MAINTAINERS

46       Chad Granum <exodist@cpan.org>
47

AUTHORS

49       Chad Granum <exodist@cpan.org>
50       Kent Fredric <kentnl@cpan.org>
51
53       Copyright 2020 Chad Granum <exodist@cpan.org>.
54
55       This program is free software; you can redistribute it and/or modify it
56       under the same terms as Perl itself.
57
58       See http://dev.perl.org/licenses/
59
60
61
62perl v5.32.0                      2020-10-15          Test2::Formatter::TAP(3)
Impressum