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

NAME

6       TAP::Parser::SourceHandler::Handle - Stream TAP from an IO::Handle or a
7       GLOB.
8

VERSION

10       Version 3.48
11

SYNOPSIS

13         use TAP::Parser::Source;
14         use TAP::Parser::SourceHandler::Executable;
15
16         my $source = TAP::Parser::Source->new->raw( \*TAP_FILE );
17         $source->assemble_meta;
18
19         my $class = 'TAP::Parser::SourceHandler::Handle';
20         my $vote  = $class->can_handle( $source );
21         my $iter  = $class->make_iterator( $source );
22

DESCRIPTION

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

METHODS

36   Class Methods
37       "can_handle"
38
39         my $vote = $class->can_handle( $source );
40
41       Casts the following votes:
42
43         0.9 if $source is an IO::Handle
44         0.8 if $source is a glob
45
46       "make_iterator"
47
48         my $iterator = $class->make_iterator( $source );
49
50       Returns a new TAP::Parser::Iterator::Stream for the source.
51
52       "iterator_class"
53
54       The class of iterator to use, override if you're sub-classing.
55       Defaults to TAP::Parser::Iterator::Stream.
56

SUBCLASSING

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

SEE ALSO

61       TAP::Object, TAP::Parser, TAP::Parser::Iterator,
62       TAP::Parser::Iterator::Stream, TAP::Parser::IteratorFactory,
63       TAP::Parser::SourceHandler, TAP::Parser::SourceHandler::Executable,
64       TAP::Parser::SourceHandler::Perl, TAP::Parser::SourceHandler::File,
65       TAP::Parser::SourceHandler::RawTAP
66
67
68
69perl v5.36.1                      2023-10-T0A3P::Parser::SourceHandler::Handle(3)
Impressum