perldoc > TAP::Parser::Source

📛 NAME

TAP::Parser::Source - a TAP source & meta data about it

🚀 Quick Reference

Use CaseCommandDescription
Create a new sourcemy $source = TAP::Parser::Source->new;Instantiate a TAP source object
Set raw source$source->raw(\'reference to raw TAP\');Define the raw TAP data
Assemble meta data$source->assemble_meta;Gather meta information about the source
Check if source is a file$source->meta->{is_file}Test if the raw source is a file
Get shebang lineTAP::Parser::Source->shebang($script);Extract the shebang line from a script
Get config for a handler$source->config_for('Perl');Retrieve configuration for a specific handler class

🏷️ VERSION

Version 3.43

📋 SYNOPSIS

  use TAP::Parser::Source;
  my $source = TAP::Parser::Source->new;
  $source->raw( \'reference to raw TAP source' )
         ->config( \%config )
         ->merge( $boolean )
         ->switches( \@switches )
         ->test_args( \@args )
         ->assemble_meta;

  do { ... } if $source->meta->{is_file};
  # see assemble_meta for a full list of data available

📖 DESCRIPTION

A TAP *source* is something that produces a stream of TAP for the parser to consume, such as an executable file, a text file, an archive, an IO handle, a database, etc. TAP::Parser::Sources encapsulate these *raw* sources, and provide some useful meta data about them. They are used by TAP::Parser::SourceHandlers, which do whatever is required to produce & capture a stream of TAP from the *raw* source, and package it up in a TAP::Parser::Iterator for the parser to consume.

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

🛠️ METHODS

🏛️ Class Methods

🔧 Instance Methods

✍️ AUTHORS

Steve Purkis.

🔗 SEE ALSO

TAP::Parser::Source
📛 NAME 🚀 Quick Reference 🏷️ VERSION 📋 SYNOPSIS 📖 DESCRIPTION 🛠️ METHODS
🏛️ Class Methods 🔧 Instance Methods
✍️ AUTHORS 🔗 SEE ALSO

Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-20 17:54 @2600:1f28:365:80b0:8802:8bb4:3873:328e
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^