Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/matchers/be_instance_of.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/be_instance_of.rb 26 12
76.92%
50.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 be_instance_of(expected)
5     #   should be_an_instance_of(expected)
6     #   should_not be_instance_of(expected)
7     #   should_not be_an_instance_of(expected)
8     #
9     # Passes if actual.instance_of?(expected)
10     #
11     # == Examples
12     #
13     #   5.should be_instance_of(Fixnum)
14     #   5.should_not be_instance_of(Numeric)
15     #   5.should_not be_instance_of(Float)
16     def be_an_instance_of(expected)
17       Matcher.new :be_an_instance_of, expected do |_expected_|
18         match do |actual|
19           actual.instance_of?(_expected_)
20         end
21       end
22     end
23     
24     alias_method :be_instance_of, :be_an_instance_of
25   end
26 end

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