| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/test_result.rb | 15 | 10 | 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 TestResult < ActiveRecord::Base |
2 belongs_to :submission |
3 validates_presence_of :submission # we require an associated submission |
4 validates_associated :submission # submission need to be valid |
5 |
6 #=== Description |
7 # Updates the file_content attribute of an TestResult object |
8 #=== Returns |
9 # True if saving with the new content succeeds, false otherwise |
10 def update_file_content(new_content) |
11 return false if new_content.nil? |
12 self.file_content = new_content |
13 return self.save |
14 end |
15 end |
Generated on Tue Feb 07 00:07:36 -0500 2012 with rcov 0.9.10