| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/annotation.rb | 17 | 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 Annotation < ActiveRecord::Base |
2 belongs_to :submission_file |
3 belongs_to :annotation_text |
4 |
5 validates_presence_of :submission_file |
6 validates_presence_of :annotation_text |
7 validates_presence_of :annotation_number |
8 |
9 validates_associated :submission_file |
10 validates_associated :annotation_text |
11 |
12 validates_numericality_of :annotation_text_id, :only_integer => true, :greater_than => 0 |
13 validates_numericality_of :submission_file_id, :only_integer => true, :greater_than => 0 |
14 validates_numericality_of :annotation_number, :only_integer => true, :greater_than => 0 |
15 |
16 validates_format_of :type, :with => /ImageAnnotation|TextAnnotation/ |
17 end |
Generated on Thu Sep 09 00:10:34 -0400 2010 with rcov 0.9.8