Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/matchers/match.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/match.rb 21 11
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 Matchers
3     # :call-seq:
4     #   should match(pattern)
5     #   should_not match(pattern)
6     #
7     # Given a Regexp or String, passes if actual.match(pattern)
8     #
9     # == Examples
10     #
11     #   email.should match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i)
12     #   email.should match("@example.com")
13     def match(expected)
14       Matcher.new :match, expected do |_expected_|
15         match do |actual|
16           actual.match(_expected_)
17         end
18       end
19     end
20   end
21 end

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