Rspec Steps C0 Coverage Information - RCov

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

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_kind_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 RSpec
2   module Matchers
3     # :call-seq:
4     #   should be_kind_of(expected)
5     #   should be_a_kind_of(expected)
6     #   should_not be_kind_of(expected)
7     #   should_not be_a_kind_of(expected)
8     #
9     # Passes if actual.kind_of?(expected)
10     #
11     # == Examples
12     #
13     #   5.should be_kind_of(Fixnum)
14     #   5.should be_kind_of(Numeric)
15     #   5.should_not be_kind_of(Float)
16     def be_a_kind_of(expected)
17       Matcher.new :be_a_kind_of, expected do |_expected_|
18         match do |actual|
19           actual.kind_of?(_expected_)
20         end
21       end
22     end
23     
24     alias_method :be_kind_of, :be_a_kind_of
25   end
26 end

Generated on Fri Apr 22 17:22:42 -0700 2011 with rcov 0.9.8