NAME
TAPx::Parser::Source - Stream output from some source
VERSION
Version 0.50_02
DESCRIPTION
Takes a command and hopefully returns a stream from it.
SYNOPSIS
use TAPx::Parser::Source;
my $source = TAPx::Parser::Source->new;
my $stream = $source->source('/usr/bin/ruby mytest.rb')->get_stream;
##############################################################################
METHODS
Class methods
new
my $source = TAPx::Parser::Source->new;
Returns a new TAPx::Parser::Source
object.
Instance methods
source
my $source = $source->source;
$source->source('./some_prog some_test_file');
Getter/setter for the source. The source should generally consist of something which, when executed with a piped open, should return a filehandle which returns successive rows of TAP.
get_stream
my $stream = $source->get_stream;
Returns a stream of the output generated by executing source
.
error
unless ( my $stream = $source->get_stream ) {
die $source->error;
}
If a stream cannot be created, this method will return the error.
exit
my $exit = $source->exit;
Returns the exit status of the process if and only if an error occurs in opening the file.