1Test::Stream::FormatterU(s3e)r Contributed Perl DocumentaTteisotn::Stream::Formatter(3)
2
3
4

NAME

6       Test::Stream::Formatter - Namespace for formatters.
7

DESCRIPTION

9       This is the namespace for formatters. This is an empty package.
10

DEPRECATED

12       This distribution is deprecated in favor of Test2, Test2::Suite, and
13       Test2::Workflow.
14
15       See Test::Stream::Manual::ToTest2 for a conversion guide.
16

CREATING FORMATTERS

18       A formatter is any package or object with a "write($event, $num)"
19       method.
20
21           package Test::Stream::Formatter::Foo;
22           use strict;
23           use warnings;
24
25           sub write {
26               my $self_or_class = shift;
27               my ($event, $assert_num) = @_;
28               ...
29           }
30
31           1;
32
33       The "write" method is a method, so it either gets a class or instance.
34       The 2 arguments are the $event object it should record, and the
35       $assert_num which is the number of the current assertion (ok), or the
36       last assertion if this even is not itself an assertion. The assertion
37       number may be any inyeger 0 or greator, and may be undefined in some
38       cases.
39

SOURCE

41       The source code repository for Test::Stream can be found at
42       http://github.com/Test-More/Test-Stream/.
43

MAINTAINERS

45       Chad Granum <exodist@cpan.org>
46

AUTHORS

48       Chad Granum <exodist@cpan.org>
49
51       Copyright 2015 Chad Granum <exodist7@gmail.com>.
52
53       This program is free software; you can redistribute it and/or modify it
54       under the same terms as Perl itself.
55
56       See http://dev.perl.org/licenses/
57
58
59
60perl v5.34.0                      2021-07-27        Test::Stream::Formatter(3)
Impressum