Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/mocks/order_group.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/mocks/order_group.rb 29 24
55.17%
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 Spec
2   module Mocks
3     class OrderGroup
4       def initialize error_generator
5         @error_generator = error_generator
6         @ordering = Array.new
7       end
8       
9       def register(expectation)
10         @ordering << expectation
11       end
12       
13       def ready_for?(expectation)
14         return @ordering.first == expectation
15       end
16       
17       def consume
18         @ordering.shift
19       end
20       
21       def handle_order_constraint expectation
22         return unless @ordering.include? expectation
23         return consume if ready_for?(expectation)
24         @error_generator.raise_out_of_order_error expectation.sym
25       end
26       
27     end
28   end
29 end

Generated on Mon May 10 23:40:27 -0700 2010 with rcov 0.9.8