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_proxy.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_proxy.rb 61 36
75.41%
58.33%

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     # Lightweight proxy for an example group. This is the object that is passed
4     # to Spec::Runner::Formatter::BaseFormatter#example_group_started
5     class ExampleGroupProxy
6 
7       def initialize(example_group) # :nodoc:
8         @description         = example_group.description
9         @nested_descriptions = example_group.nested_descriptions
10         @examples            = example_group.example_proxies
11         @location            = example_group.location
12         @backtrace           = example_group.location # deprecated - see the backtrace method below
13         @options             = example_group.options.dup
14         @options.delete(:location)
15         @options.delete(:scope)
16       end
17 
18       # Optional hash passed to the example group declaration. Note that RSpec uses
19       # this hash internally and reserves the keys :location and :scope for its own
20       # use (and removes them from this hash)
21       attr_reader :options
22 
23       # This is the description passed to the <tt>describe()</tt> method or any
24       # of its aliases
25       attr_reader :description
26 
27       # Used by Spec::Runner::Formatter::NestedTextFormatter to access the
28       # description of each example group in a nested group separately.
29       attr_reader :nested_descriptions
30 
31       # A collection of ExampleGroupProxy objects, one for each example
32       # declared in this group.
33       attr_reader :examples
34 
35       # The file and line number at which the proxied example group
36       # was declared. This is extracted from <tt>caller</tt>, and is therefore
37       # formatted as an individual line in a backtrace.
38       attr_reader :location
39 
40       # Deprecated - use location() instead
41       def backtrace
42         Spec::deprecate("ExampleGroupProxy#backtrace","ExampleGroupProxy#location")
43         @backtrace
44       end
45 
46       # Deprecated - just use gsub on the description instead.
47       def filtered_description(regexp)
48         Spec::deprecate("ExampleGroupProxy#filtered_description","gsub (or similar) to modify ExampleGroupProxy#description")
49         ExampleGroupMethods.build_description_from(
50           *nested_descriptions.collect do |description|
51             description =~ regexp ? description.gsub($1, "") : description
52           end
53         )
54       end
55 
56       def ==(other) # :nodoc:
57         other.description == description
58       end
59     end
60   end
61 end

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