C0 code coverage information

Generated on Sun Oct 26 11:17:55 -0500 2008 with rcov 0.8.1.2


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.
Name Total lines Lines of code Total coverage Code coverage
spec/aquarium/aspects/advice_chain_node_spec.rb 36 30
100.0% 
100.0% 
 1 require File.dirname(__FILE__) + '/../spec_helper'
 2 require 'aquarium/spec_example_types'
 3 require 'aquarium'
 4 
 5 include Aquarium::Aspects::Advice
 6 
 7 # Some of AdviceChainNode and related classes are tested through advice_spec.rb. We rely on rcov to
 8 # tell us otherwise...
 9 describe Aquarium::Aspects::AdviceChainNode, "#each" do
10   it "should return each node in succession" do
11     static_join_point = :static_join_point
12     advice = lambda {|jp, obj, *args| p ":none advice"}
13     options = {
14       :advice_kind => :none, 
15       :advice => advice,
16       :next_node => nil,
17       :static_join_point => static_join_point}    
18     advice_chain = Aquarium::Aspects::AdviceChainNodeFactory.make_node options
19 
20     KINDS_IN_PRIORITY_ORDER.each do |advice_kind|
21       advice = lambda {|jp, obj, *args| p "#{advice_kind} advice"}
22       options[:advice_kind] = advice_kind
23       options[:advice]      = advice,
24       options[:next_node]   = advice_chain
25       advice_chain = Aquarium::Aspects::AdviceChainNodeFactory.make_node options
26     end
27     
28     advice_chain.size.should == 6
29     expected_advice_kinds = KINDS_IN_PRIORITY_ORDER.reverse + [:none]
30     count = 0
31     advice_chain.each do |node|
32       node.advice_kind.should == expected_advice_kinds[count]
33       count += 1
34     end
35   end
36 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.1.2.

Valid XHTML 1.0! Valid CSS!