TAP::Pa...:RawTAP(3pm)
π NAME π
Bestie, meet TAP::Parser::SourceHandler::RawTAP β the handler that streams output from raw TAP living in a scalar/array ref. This page comes from the Perl Programmers Reference Guide, and the header is out here calling it TAP::Pa...:RawTAP(3pm) (truncated-name realness, iykyk). π¦
π VERSION π
Version 3.50 β slay. β¨
π SYNOPSIS π
Okay so here's the code vibe, bestie:
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 );
π¦ DESCRIPTION π¦
This is a raw TAP output TAP::Parser::SourceHandler β it has 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).
Unless you're writing a plugin or subclassing TAP::Parser, you probably won't need to use this module directly β lowkey it's a behind-the-scenes icon. π
β¨ METHODS β¨
π Class Methods π
π can_handle π
my $vote = $class->can_handle( $source );
It only votes when $source is an array, or a scalar with newlines. Here's the vote lineup, no cap:
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
π«Ά make_iterator π«Ά
my $iterator = $class->make_iterator( $source );
Returns a new TAP::Parser::Iterator::Array for the source. Heads up: $source->raw must be an array ref, or a scalar ref. β¨
It croaks on error β dramatic but fair. π
π§ SUBCLASSING π§
Please see the SUBCLASSING section in TAP::Parser for a subclassing overview, bestie. π
π SEE ALSO π
TAP::ObjectTAP::ParserTAP::Parser::IteratorFactoryTAP::Parser::SourceHandlerTAP::Parser::SourceHandler::ExecutableTAP::Parser::SourceHandler::PerlTAP::Parser::SourceHandler::FileTAP::Parser::SourceHandler::Handle
mwah π footer tea for the record: source/version perl v5.42.3, dated 2026-11-03, page TAP::Pa...:RawTAP(3pm). Bye bestie, go stream that raw TAP! π
π¦ 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