TAP::Stream::Text - Create a TAP text object.
version 0.44
my $tap = <<'END'; ok 1 - some test ok 2 - another test 1..2 END my $text = TAP::Stream::Text->new( name => $what_this_tap_tested, # String text => $tap, );
This module is used to create a named chunk of TAP text representing a complete stream, including the plan.
new
my $text = TAP::Stream::Text->new( name => $some_name, text => $tap, ); say $text->name; # return name say $text->to_string; # return text
name
my $name = $stream->name;
A read/write string accessor.
Returns the name of the stream. Default to Unnamed TAP stream. If you add this stream to another stream, consider naming this stream for a more useful TAP output. This is used by TAP::Stream to create the subtest summary line:
Unnamed TAP stream
TAP::Stream
1..2 ok 1 - some test ok 2 - another test ok 1 - this is $tap->name
text
A read-only accessor for the text passed to the constructor.
Curtis "Ovid" Poe <ovid@cpan.org>
This software is copyright (c) 2013 by Curtis "Ovid" Poe.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install TAP::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::Stream
CPAN shell
perl -MCPAN -e shell install TAP::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.