TAP::Pa...r::File(3pm)
π TAP::Parser::SourceHandler::File(3pm) π
hey bestie, welcome to the TAP::Parser::SourceHandler::File(3pm) page from the Perl Programmers Reference Guide β¨ this one is all about streaming TAP from a text file, and it is lowkey iconic.
πΈ VERSION πΈ
Version 3.50
π¦ SYNOPSIS π¦
use TAP::Parser::Source;
use TAP::Parser::SourceHandler::File;
my $source = TAP::Parser::Source->new->raw( \'file.tap' );
$source->assemble_meta;
my $class = 'TAP::Parser::SourceHandler::File';
my $vote = $class->can_handle( $source );
my $iter = $class->make_iterator( $source );
β¨ DESCRIPTION β¨
This is a raw TAP stored in a file TAP::Parser::SourceHandler β it has 2 jobs:
- Figure out if the raw source it's given is a file containing raw TAP output. See
TAP::Parser::IteratorFactoryfor more details. - Takes raw TAP from the text file given, and converts into an iterator.
Unless you're writing a plugin or subclassing TAP::Parser, you probably won't need to use this module directly. no cap π«Ά
π METHODS π
π Class Methods π
π can_handle
my $vote = $class->can_handle( $source );
Only votes if $source looks like a regular file. Casts the following votes:
0.9if it's a.tapfile0.9if it has an extension matching any given in user config.
π₯ make_iterator
my $iterator = $class->make_iterator( $source );
Returns a new TAP::Parser::Iterator::Stream for the source. "croak"s on error.
β iterator_class
The class of iterator to use, override if you're sub-classing. Defaults to TAP::Parser::Iterator::Stream.
π CONFIGURATION π
{
extensions => [ @case_insensitive_exts_to_match ]
}
π§ SUBCLASSING π§
Please see "SUBCLASSING" in TAP::Parser for a subclassing overview.
π SEE ALSO π
TAP::ObjectTAP::ParserTAP::Parser::SourceHandlerTAP::Parser::SourceHandler::ExecutableTAP::Parser::SourceHandler::PerlTAP::Parser::SourceHandler::HandleTAP::Parser::SourceHandler::RawTAP
Later, bestie β this one is for perl v5.42.3, dated 2026-11-03. πβ¨
π¦ 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