C0 code coverage information
Generated on Mon Aug 13 01:18:53 -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 DSL
3 class CompositeProcBuilder < Array
4 def initialize(callbacks=[])
5 push(*callbacks)
6 end
7
8 def proc(&error_handler)
9 parts = self
10 errors = []
11 Proc.new do
12 result = parts.collect do |part|
13 begin
14 if part.is_a?(UnboundMethod)
15 part.bind(self).call
16 else
17 instance_eval(&part)
18 end
19 rescue Exception => e
20 if error_handler
21 error_handler.call(e)
22 else
23 errors << e
24 end
25 end
26 end
27 raise errors.first unless errors.empty?
28 result
29 end
30 end
31 end
32 end
33 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.