1TAP::Parser::SourceHandUlseerr::CRoanwtTrAiPb(u3t)ed PerTlAPD:o:cPuamresnetra:t:iSoonurceHandler::RawTAP(3)
2
3
4

NAME

6       TAP::Parser::SourceHandler::RawTAP - Stream output from raw TAP in a
7       scalar/array ref.
8

VERSION

10       Version 3.42
11

SYNOPSIS

13         use TAP::Parser::Source;
14         use TAP::Parser::SourceHandler::RawTAP;
15
16         my $source = TAP::Parser::Source->new->raw( \"1..1\nok 1\n" );
17         $source->assemble_meta;
18
19         my $class = 'TAP::Parser::SourceHandler::RawTAP';
20         my $vote  = $class->can_handle( $source );
21         my $iter  = $class->make_iterator( $source );
22

DESCRIPTION

24       This is a raw TAP output TAP::Parser::SourceHandler - it has 2 jobs:
25
26       1. Figure out if the TAP::Parser::Source it's given is raw TAP output
27       ("can_handle").
28
29       2. Creates an iterator for raw TAP output ("make_iterator").
30
31       Unless you're writing a plugin or subclassing TAP::Parser, you probably
32       won't need to use this module directly.
33

METHODS

35   Class Methods
36       "can_handle"
37
38         my $vote = $class->can_handle( $source );
39
40       Only votes if $source is an array, or a scalar with newlines.  Casts
41       the following votes:
42
43         0.9  if it's a scalar with '..' in it
44         0.7  if it's a scalar with 'ok' in it
45         0.3  if it's just a scalar with newlines
46         0.5  if it's an array
47
48       "make_iterator"
49
50         my $iterator = $class->make_iterator( $source );
51
52       Returns a new TAP::Parser::Iterator::Array for the source.
53       "$source->raw" must be an array ref, or a scalar ref.
54
55       "croak"s on error.
56

SUBCLASSING

58       Please see "SUBCLASSING" in TAP::Parser for a subclassing overview.
59

SEE ALSO

61       TAP::Object, TAP::Parser, TAP::Parser::IteratorFactory,
62       TAP::Parser::SourceHandler, TAP::Parser::SourceHandler::Executable,
63       TAP::Parser::SourceHandler::Perl, TAP::Parser::SourceHandler::File,
64       TAP::Parser::SourceHandler::Handle
65
66
67
68perl v5.30.0                      2019-07-T2A6P::Parser::SourceHandler::RawTAP(3)
Impressum