Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/example/example_group_hierarchy.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/example/example_group_hierarchy.rb 53 43
92.45%
90.70%

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 Example
3     class ExampleGroupHierarchy < Array
4       def initialize(example_group_class)
5         push example_group_class
6         if example_group_class.respond_to?(:superclass) && example_group_class.superclass.respond_to?(:example_group_hierarchy)
7           unshift example_group_class.superclass.example_group_hierarchy
8           flatten!
9         end
10       end
11 
12       def run_before_all(example)
13         example.eval_each_fail_fast(before_all_parts)
14       end
15 
16       def run_before_each(example)
17         example.eval_each_fail_fast(before_each_parts)
18       end
19 
20       def run_after_each(example)
21         example.eval_each_fail_slow(after_each_parts)
22       end
23 
24       def run_after_all(example)
25         example.eval_each_fail_slow(after_all_parts)
26       end
27 
28       def before_all_parts
29         @before_all_parts ||= collect {|klass| klass.before_all_parts}.flatten
30       end
31 
32       def before_each_parts
33         @before_each_parts ||= collect {|klass| klass.before_each_parts}.flatten
34       end
35 
36       def after_each_parts
37         @after_each_parts ||= reverse.collect {|klass| klass.after_each_parts}.flatten
38       end
39 
40       def after_all_parts
41         @after_all_parts ||= reverse.collect {|klass| klass.after_all_parts}.flatten
42       end
43 
44       def nested_descriptions
45         @nested_descriptions ||= collect {|eg| nested_description_from(eg) == "" ? nil : nested_description_from(eg) }.compact
46       end
47 
48       def nested_description_from(example_group)
49         example_group.description_args.join
50       end
51     end
52   end
53 end

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