Rspec Steps C0 Coverage Information - RCov

rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match.rb 21 11
61.90%
27.27%

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 RSpec
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 Fri Apr 22 17:22:41 -0700 2011 with rcov 0.9.8