man > TAP::Parser::SourceHandler::File

πŸ“› NAME

TAP::Parser::SourceHandler::File – Stream TAP from a text file.

πŸš€ Quick Reference

Use CaseCommandDescription
πŸ” Check if source is a file$source->assemble_meta; $class->can_handle($source)Votes 0.9 for .tap files or matching extensions
πŸ“¦ Create iterator from file$class->make_iterator($source)Returns a TAP::Parser::Iterator::Stream for the file
βš™οΈ Custom iterator classsub iterator_class { 'My::Iterator' }Override if subclassing; defaults to TAP::Parser::Iterator::Stream

πŸ“Œ VERSION

Version 3.43

πŸ“ 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:

  1. πŸ” Figure out if the raw source is a file containing raw TAP output. See TAP::Parser::IteratorFactory for details.
  2. πŸ“₯ Takes raw TAP from the text file and converts it into an iterator.

Unless you’re writing a plugin or subclassing TAP::Parser, you probably won’t need to use this module directly.

πŸ”§ METHODS

🧰 Class Methods

can_handle
my $vote = $class->can_handle( $source );

Only votes if $source looks like a regular file. Casts the following votes:

make_iterator
my $iterator = $class->make_iterator( $source );

Returns a new TAP::Parser::Iterator::Stream for the source. croaks on error.

iterator_class

The class of iterator to use; override if you’re subclassing. 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


perl v5.34.0 – 2026-06-23 – TAP::Parser::SourceHandler::File(3perl)

TAP::Parser::SourceHandler::File
πŸ“› NAME πŸš€ Quick Reference πŸ“Œ VERSION πŸ“ SYNOPSIS πŸ“– DESCRIPTION πŸ”§ METHODS
🧰 Class Methods
βš™οΈ CONFIGURATION πŸ”„ SUBCLASSING πŸ‘€ SEE ALSO

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 05:35 @216.73.216.138
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format