Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
rcov/ruby/1.8/gems/rspec-mocks-2.5.0/lib/rspec/mocks/serialization.rb | 26 | 22 | 34.62%
|
31.82%
|
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.
1 require 'rspec/mocks/extensions/marshal' |
2 |
3 module RSpec |
4 module Mocks |
5 module Serialization |
6 def self.fix_for(object) |
7 object.extend(YAML) if defined?(::YAML) |
8 end |
9 |
10 module YAML |
11 def to_yaml(*a) |
12 return super(*a) unless instance_variable_defined?(:@mock_proxy) |
13 |
14 mp = @mock_proxy |
15 remove_instance_variable(:@mock_proxy) |
16 |
17 begin |
18 super(*a) |
19 ensure |
20 @mock_proxy = mp |
21 end |
22 end |
23 end |
24 end |
25 end |
26 end |
Generated on Fri Apr 22 17:22:41 -0700 2011 with rcov 0.9.8