C0 code coverage information
Generated on Mon Aug 13 01:18:54 -0400 2007 with rcov 0.8.0
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 module Spec
2 module Mocks
3 module Methods
4 def should_receive(sym, opts={}, &block)
5 __mock_proxy.add_message_expectation(opts[:expected_from] || caller(1)[0], sym.to_sym, opts, &block)
6 end
7
8 def should_not_receive(sym, &block)
9 __mock_proxy.add_negative_message_expectation(caller(1)[0], sym.to_sym, &block)
10 end
11
12 def stub!(sym)
13 __mock_proxy.add_stub(caller(1)[0], sym.to_sym)
14 end
15
16 def received_message?(sym, *args, &block) #:nodoc:
17 __mock_proxy.received_message?(sym.to_sym, *args, &block)
18 end
19
20 def rspec_verify #:nodoc:
21 __mock_proxy.verify
22 end
23
24 def rspec_reset #:nodoc:
25 __mock_proxy.reset
26 end
27
28 private
29
30 def __mock_proxy
31 if Mock === self
32 @mock_proxy ||= Proxy.new(self, @name, @options)
33 else
34 @mock_proxy ||= Proxy.new(self, self.class.name)
35 end
36 end
37 end
38 end
39 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.