| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/text_annotation.rb | 19 | 13 | 100.00%
|
100.00%
|
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.
1 class TextAnnotation < Annotation |
2 |
3 validates_presence_of :line_start |
4 validates_presence_of :line_end |
5 |
6 def add_annotation_js_string |
7 return "add_annotation(#{self.id},$R(#{self.line_start}, #{self.line_end}), |
8 #{self.annotation_text_id})" |
9 end |
10 |
11 def remove_annotation_js_string |
12 return "remove_annotation(#{self.id}, $R(#{self.line_start}, |
13 #{self.line_end}), #{self.annotation_text.id});" |
14 end |
15 |
16 def annotation_list_link_partial |
17 return "/annotations/text_annotation_list_link" |
18 end |
19 end |
Generated on Tue Feb 07 00:07:36 -0500 2012 with rcov 0.9.10