Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb 58 45
100.00%
100.00%

Key

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.

Coverage Details

1 module Spec
2   module Runner
3     class ExampleGroupRunner
4       def initialize(options)
5         @options = options
6       end
7 
8       def load_files(files)
9         $KCODE = 'u' if RUBY_VERSION.to_f < 1.9
10         # It's important that loading files (or choosing not to) stays the
11         # responsibility of the ExampleGroupRunner. Some implementations (like)
12         # the one using DRb may choose *not* to load files, but instead tell
13         # someone else to do it over the wire.
14         files.each do |file|
15           load file
16         end
17       end
18 
19       def run
20         prepare
21         success = true
22         example_groups.each do |example_group|
23           success = success & example_group.run(@options)
24         end
25         finish
26         success
27       end
28 
29     protected
30 
31       def prepare
32         reporter.start(number_of_examples)
33         example_groups.reverse! if reverse
34       end
35 
36       def finish
37         reporter.end
38         reporter.dump
39       end
40 
41       def reporter
42         @options.reporter
43       end
44 
45       def reverse
46         @options.reverse
47       end
48 
49       def example_groups
50         @options.example_groups
51       end
52 
53       def number_of_examples
54         @options.number_of_examples
55       end
56     end
57   end
58 end

Generated on Mon May 10 23:40:28 -0700 2010 with rcov 0.9.8