C0 code coverage information

Generated on Mon Aug 13 01:18:55 -0400 2007 with rcov 0.8.0


Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name Total lines Lines of code Total coverage Code coverage
lib/spec/runner/command_line.rb 22 14
100.0% 
100.0% 
 1 require 'spec/runner/option_parser'
 2 
 3 module Spec
 4   module Runner
 5     # Facade to run specs without having to fork a new ruby process (using `spec ...`)
 6     class CommandLine
 7       # Runs specs. +argv+ is the commandline args as per the spec commandline API, +err+ 
 8       # and +out+ are the streams output will be written to. +exit+ tells whether or
 9       # not a system exit should be called after the specs are run and
10       # +warn_if_no_files+ tells whether or not a warning (the help message)
11       # should be printed to +err+ in case no files are specified.
12       def self.run(argv, err, out, exit=true, warn_if_no_files=true)
13         old_behaviour_runner = defined?($behaviour_runner) ? $behaviour_runner : nil
14         $behaviour_runner = OptionParser.new.create_behaviour_runner(argv, err, out, warn_if_no_files)
15         return if $behaviour_runner.nil? # This is the case if we use --drb
16 
17         $behaviour_runner.run(argv, exit)
18         $behaviour_runner = old_behaviour_runner
19       end
20     end
21   end
22 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.

Valid XHTML 1.0! Valid CSS!