C0 code coverage information

Generated on Sun Aug 31 02:38:35 -0400 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
app/models/category.rb 27 23
70.4%  
65.2%  
 1 class Category < ActiveRecord::Base
 2   has_and_belongs_to_many :photos 
 3   acts_as_tree
 4   
 5   def ancestors_name 
 6     if parent 
 7       parent.ancestors_name + parent.name + ':' 
 8     else 
 9       "" 
10     end 
11   end 
12   
13   def long_name 
14     ancestors_name + name 
15   end 
16   
17   def photos_including_child_categories 
18     result = photos.clone 
19     children.each do |child| 
20       child.photos_including_child_categories.each do |photo| 
21         result << photo unless result.include? photo 
22       end 
23     end 
24     result 
25   end 
26   
27 end

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

Valid XHTML 1.0! Valid CSS!