C0 code coverage information

Generated on Fri Aug 25 10:11:30 PDT 2006 with rcov 0.7.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.
Name Total lines Lines of code Total coverage Code coverage
app/models/feature.rb 24 19
29.2% 
21.1% 
 1 class Feature < Article
 2     
 3     validates_presence_of :sub_category
 4     
 5     def to_param
 6         new_array = nil
 7         if sub_category and sub_category_id != 1
 8             new_array = [sub_category.short_title, truncate_title(50, false)]
 9         else
10             new_array = [truncate_title(50, false)]
11         end
12         
13         munge_title new_array
14     end
15     
16     def full_title
17         if self.sub_category and self.sub_category_id != 1 and self.sub_category_id != 7
18             self.sub_category.short_title + ": " + self.title
19         else
20             self.title
21         end
22     end
23     
24 end

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

Valid XHTML 1.0! Valid CSS!