Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/matchers/eql.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/matchers/eql.rb 42 24
35.71%
12.50%

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 Matchers
3     # :call-seq:
4     #   should eql(expected)
5     #   should_not eql(expected)
6     #
7     # Passes if actual and expected are of equal value, but not necessarily the same object.
8     #
9     # See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby.
10     #
11     # == Examples
12     #
13     #   5.should eql(5)
14     #   5.should_not eql(3)
15     def eql(expected)
16       Matcher.new :eql, expected do |_expected_|
17         match do |actual|
18           actual.eql?(_expected_)
19         end
20 
21         failure_message_for_should do |actual|
22           <<-MESSAGE
23 
24 expected #{_expected_.inspect}
25      got #{actual.inspect}
26 
27 (compared using eql?)
28 MESSAGE
29         end
30 
31         failure_message_for_should_not do |actual|
32           <<-MESSAGE
33 
34 expected #{actual.inspect} not to equal #{_expected_.inspect}
35 
36 (compared using eql?)
37 MESSAGE
38         end
39       end
40     end
41   end
42 end

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