Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/example/example_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_proxy.rb 41 23
80.49%
65.22%

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. This is the object that is passed to
4     # example-related methods in Spec::Runner::Formatter::BaseFormatter
5     class ExampleProxy
6 
7       def initialize(description=nil, options={}, location=nil) # :nodoc:
8         @description, @options, @location = description, options, location
9       end
10 
11       # Optional hash passed to the example declaration
12       attr_reader :options
13 
14       # This is the docstring passed to the <tt>it()</tt> method or any
15       # of its aliases
16       attr_reader :description
17 
18       # The file and line number at which the represented example
19       # was declared. This is extracted from <tt>caller</tt>, and is therefore
20       # formatted as an individual line in a backtrace.
21       attr_reader :location
22 
23       # Deprecated - use location()
24       def backtrace
25         Spec.deprecate("ExampleProxy#backtrace","ExampleProxy#location")
26         location
27       end
28 
29       # Convenience method for example group - updates the value of
30       # <tt>description</tt> and returns self.
31       def update(description) # :nodoc:
32         @description = description
33         self
34       end
35 
36       def ==(other) # :nodoc:
37         (other.description == description) & (other.location == location)
38       end
39     end
40   end
41 end

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