TAP::P...RawTAP(3perl)
π TAP::Parser::SourceHandler::RawTAP π
okay bestie, welcome to the lil module that streams raw TAP output straight out of a scalar or an array ref π it lives in the Perl Programmers Reference Guide and it's genuinely iconic, no cap.
Version 3.52 β yeah, that's the one. β¨
π SYNOPSIS π
use TAP::Parser::Source;
use TAP::Parser::SourceHandler::RawTAP;
my $source = TAP::Parser::Source->new->raw( \"1..1\nok 1\n" );
$source->assemble_meta;
my $class = 'TAP::Parser::SourceHandler::RawTAP';
my $vote = $class->can_handle( $source );
my $iter = $class->make_iterator( $source );
like, copy it, paste it, slay. π
π¦ DESCRIPTION π¦
So this is a raw TAP output TAP::Parser::SourceHandler, and the way that it has literally exactly 2 jobs:
- Figure out if the
TAP::Parser::Sourceit's given is raw TAP output ("can_handle"). - Creates an iterator for raw TAP output (
"make_iterator").
and that's the whole personality. π
ngl though β unless you're writing a plugin or subclassing TAP::Parser, you probably won't need to use this module directly. lowkey it's doing its own thing in the background. π«Ά
π METHODS π
β¨ Class Methods β¨
"can_handle" π
my $vote = $class->can_handle( $source );
Only votes if $source is an array, or a scalar with newlines. Casts the following votes:
0.9β if it's a scalar with'..'in it0.7β if it's a scalar with'ok'in it0.3β if it's just a scalar with newlines0.5β if it's an array
the vibes-based scoring system fr fr, it's giving β¨democracyβ¨
"make_iterator" π¦
my $iterator = $class->make_iterator( $source );
Returns a new TAP::Parser::Iterator::Array for the source. "$source->raw" must be an array ref, or a scalar ref. π
it "croak"s on error. π so like, handle that.
πΈ SUBCLASSING πΈ
Please see "SUBCLASSING" in TAP::Parser for a subclassing overview. go read it bestie, it's worth it. π
β SEE ALSO β
TAP::ObjectTAP::ParserTAP::Parser::IteratorFactoryTAP::Parser::SourceHandlerTAP::Parser::SourceHandler::ExecutableTAP::Parser::SourceHandler::PerlTAP::Parser::SourceHandler::FileTAP::Parser::SourceHandler::Handle
the whole friend group π«Ά
and that's the page, bestie!! this whole thing came to you courtesy of perl v5.44.0, dated 2026-10-17, on the TAP::P...RawTAP(3perl) page. mwah π go forth and parse, main character π β¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms