| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/assignment_file.rb | 11 | 8 | 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 AssignmentFile < ActiveRecord::Base |
2 |
3 belongs_to :assignment |
4 |
5 validates_presence_of :filename |
6 validates_uniqueness_of :filename, :scope => :assignment_id |
7 validates_format_of :filename, |
8 :with => /^[0-9a-zA-Z\.\-_]+$/, |
9 :message => I18n.t('validation_messages.format_of_assignment_file') |
10 |
11 end |
Generated on Sun Feb 05 00:08:07 -0500 2012 with rcov 0.9.10