TAP::Pa...:Handle(3pm)
π NAME π
Okay bestie, welcome to the tea on TAP::Parser::SourceHandler::Handle β this page lives in the Perl Programmers Reference Guide, and it is literally about streaming TAP from an IO::Handle or a GLOB. Slay. π
π¦ VERSION π¦
Version 3.50 β noted, bestie. π
β¨ SYNOPSIS β¨
use TAP::Parser::Source;
use TAP::Parser::SourceHandler::Executable;
my $source = TAP::Parser::Source->new->raw( \*TAP_FILE );
$source->assemble_meta;
my $class = 'TAP::Parser::SourceHandler::Handle';
my $vote = $class->can_handle( $source );
my $iter = $class->make_iterator( $source );
π DESCRIPTION π
This is a raw TAP stored in an IO Handle TAP::Parser::SourceHandler class. It has 2 jobs, and honestly? It eats both of them up. π₯
- Figure out if the
TAP::Parser::Sourceit's given is anIO::HandleorGLOBcontaining raw TAP output β that's the"can_handle"job. - Creates an iterator for
IO::Handle's & globs β that's the"make_iterator"job.
Unless you're writing a plugin or subclassing TAP::Parser, you probably won't need to use this module directly. Ngl, it's giving background character with main character energy. π
π METHODS π
π Class Methods π
"can_handle"
my $vote = $class->can_handle( $source );
Casts the following votes:
0.9if$sourceis anIO::Handle0.8if$sourceis a glob
"make_iterator"
my $iterator = $class->make_iterator( $source );
Returns a new TAP::Parser::Iterator::Stream for the source. Periodt. π¦
"iterator_class"
The class of iterator to use, override if you're sub-classing. Defaults to TAP::Parser::Iterator::Stream.
πΈ SUBCLASSING πΈ
Please see "SUBCLASSING" in TAP::Parser for a subclassing overview. Go get that lore, bestie. π
π₯ SEE ALSO π₯
TAP::ObjectTAP::ParserTAP::Parser::IteratorTAP::Parser::Iterator::StreamTAP::Parser::IteratorFactoryTAP::Parser::SourceHandlerTAP::Parser::SourceHandler::ExecutableTAP::Parser::SourceHandler::PerlTAP::Parser::SourceHandler::FileTAP::Parser::SourceHandler::RawTAP
Bye bestie! π The footer says source/version perl v5.42.3, date 2026-11-03, and the footer label is TAP::Pa...:Handle(3pm). No cap, that's the whole vibe check. πβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms