C0 code coverage information

Generated on Sun Oct 26 21:43:35 -0700 2008 with rcov 0.8.1.2


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.
Name Total lines Lines of code Total coverage Code coverage
/Library/Ruby/Gems/1.8/gems/rspec-1.1.4/lib/spec/matchers/match.rb 41 26
85.4%  
76.9%  
 1 module Spec
 2   module Matchers
 3     
 4     class Match #:nodoc:
 5       def initialize(expected)
 6         @expected = expected
 7       end
 8       
 9       def matches?(actual)
10         @actual = actual
11         return true if actual =~ @expected
12         return false
13       end
14       
15       def failure_message
16         return "expected #{@actual.inspect} to match #{@expected.inspect}", @expected, @actual
17       end
18       
19       def negative_failure_message
20         return "expected #{@actual.inspect} not to match #{@expected.inspect}", @expected, @actual
21       end
22       
23       def description
24         "match #{@expected.inspect}"
25       end
26     end
27     
28     # :call-seq:
29     #   should match(regexp)
30     #   should_not match(regexp)
31     #
32     # Given a Regexp, passes if actual =~ regexp
33     #
34     # == Examples
35     #
36     #   email.should match(/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i)
37     def match(regexp)
38       Matchers::Match.new(regexp)
39     end
40   end
41 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.

Valid XHTML 1.0! Valid CSS!