Rspec Steps C0 Coverage Information - RCov

rcov/ruby/1.8/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/marshal.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/marshal.rb 27 19
48.15%
42.11%

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 Marshal
2 
3   class << self
4 
5     def dump_with_mocks(*args)
6       object = args.shift
7       return dump_without_mocks(*args.unshift(object)) unless object.instance_variable_defined?(:@mock_proxy)
8 
9       mp = object.instance_variable_get(:@mock_proxy)
10       return dump_without_mocks(*args.unshift(object)) unless mp.is_a?(::RSpec::Mocks::Proxy)
11 
12       object.send(:remove_instance_variable, :@mock_proxy)
13 
14       begin
15         dump_without_mocks(*args.unshift(object.dup))
16       ensure
17         object.instance_variable_set(:@mock_proxy,mp)
18       end
19     end
20 
21     alias_method :dump_without_mocks, :dump
22     undef_method :dump
23     alias_method :dump, :dump_with_mocks
24 
25   end
26 
27 end

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