C0 code coverage information

Generated on Sun Oct 26 11:18:15 -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/finders/pointcut_finder_spec_test_classes.rb 90 86
100.0% 
100.0% 
 1 
 2 module Aquarium
 3   module PointcutFinderTestClasses
 4     class PointcutConstantHolder1
 5       include Aquarium::DSL
 6       def mc1; end
 7       def doit; mc1; end
 8       POINTCUT1 = pointcut :calls_to => :mc1 unless const_defined?("POINTCUT1") 
 9     end
10     class PointcutConstantHolder2
11       include Aquarium::DSL
12       def mc2; end
13       def doit; mc2; end
14       POINTCUT2 = pointcut :calls_to => :mc2 unless const_defined?("POINTCUT2")
15     end
16     class PointcutClassVariableHolder1
17       include Aquarium::DSL
18       def mcv1; end
19       def doit; mcv1; end
20       @@pointcut1 = pointcut :calls_to => :mcv1
21       def self.pointcut1; @@pointcut1; end
22     end
23     class OuterPointcutHolder
24       class NestedPointcutConstantHolder1
25         include Aquarium::DSL
26         def mc11; end
27         def doit; mc11; end
28         POINTCUT11 = pointcut :calls_to => :mc11 unless const_defined?("POINTCUT11")
29       end
30       class NestedPointcutClassVariableHolder1
31         include Aquarium::DSL
32         def mcv11; end
33         def doit; mcv11; end
34         @@pointcut11 = pointcut :calls_to => :mcv11
35         def self.pointcut11; @@pointcut11; end
36       end
37     end
38     class ParentOfPointcutHolder; end
39     class PointcutConstantHolderChild < ParentOfPointcutHolder
40       include Aquarium::DSL
41       def mc; end
42       def doit; mc; end
43       POINTCUT = pointcut :calls_to => :mc unless const_defined?("POINTCUT")
44     end
45     class DescendentOfPointcutConstantHolderChild < PointcutConstantHolderChild; end
46   
47     def self.sort_pc_array pc_array
48       pc_array.sort{|x,y| x.object_id <=> y.object_id}
49     end
50     def self.found_pointcuts_should_match found_result_set, expected_found_pc_array, expected_not_found_type_array = []
51       found_result_set.matched.size.should == expected_found_pc_array.size
52       found_result_set.not_matched.size.should == expected_not_found_type_array.size
53       self.sort_pc_array(found_result_set.found_pointcuts).should == expected_found_pc_array
54     end
55 
56     def self.all_pointcut_classes
57       [Aquarium::PointcutFinderTestClasses::PointcutConstantHolder1, 
58        Aquarium::PointcutFinderTestClasses::PointcutConstantHolder2,
59        Aquarium::PointcutFinderTestClasses::PointcutClassVariableHolder1,  
60        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutConstantHolder1, 
61        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutClassVariableHolder1]
62     end
63     def self.all_constants_pointcut_classes
64       [Aquarium::PointcutFinderTestClasses::PointcutConstantHolder1, 
65        Aquarium::PointcutFinderTestClasses::PointcutConstantHolder2,
66        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutConstantHolder1]
67     end
68     def self.all_class_variables_pointcut_classes
69       [Aquarium::PointcutFinderTestClasses::PointcutClassVariableHolder1,  
70        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutClassVariableHolder1]
71     end
72 
73     def self.all_pointcuts
74       sort_pc_array [Aquarium::PointcutFinderTestClasses::PointcutConstantHolder1::POINTCUT1, 
75        Aquarium::PointcutFinderTestClasses::PointcutConstantHolder2::POINTCUT2,
76        Aquarium::PointcutFinderTestClasses::PointcutClassVariableHolder1.pointcut1,  
77        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutConstantHolder1::POINTCUT11, 
78        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutClassVariableHolder1.pointcut11]
79     end
80     def self.all_constants_pointcuts
81       sort_pc_array [Aquarium::PointcutFinderTestClasses::PointcutConstantHolder1::POINTCUT1, 
82        Aquarium::PointcutFinderTestClasses::PointcutConstantHolder2::POINTCUT2,
83        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutConstantHolder1::POINTCUT11]
84     end
85     def self.all_class_variables_pointcuts
86       sort_pc_array [Aquarium::PointcutFinderTestClasses::PointcutClassVariableHolder1.pointcut1,  
87        Aquarium::PointcutFinderTestClasses::OuterPointcutHolder::NestedPointcutClassVariableHolder1.pointcut11]
88     end
89   end
90 end

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

Valid XHTML 1.0! Valid CSS!