class Tapout::PerlParser

This legacy parser takes a traditional TAP stream and routes it through a Tapout report format.

Public Class Methods

new(options={}) click to toggle source

options - the report format to use

# File lib/tapout/parsers/perl.rb, line 13
def initialize(options={})
  format    = options[:format]
  @reporter = Reporters.factory(format).new
end

Public Instance Methods

consume(input) click to toggle source

input - any object that responds to gets

# File lib/tapout/parsers/perl.rb, line 19
def consume(input)
  parser = PerlAdapter.new(input)
  parser | @reporter
  return @reporter.exit_code
end