| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/no_late_submission_rule.rb | 38 | 23 | 78.95%
|
65.22%
|
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 # The NoLateSubmissionRule applies no penalties whatsoever. The collection |
2 # time is on the due date of the assignment + allow_submit_until |
3 |
4 class NoLateSubmissionRule < SubmissionRule |
5 |
6 # When Students commit code after the collection time, MarkUs should warn |
7 # the Students with a message saying that the due date has passed, and the |
8 # work they're submitting will probably not be graded |
9 def commit_after_collection_message(grouping) |
10 I18n.t 'submission_rules.no_late_submission_rule.commit_after_late_message' |
11 end |
12 |
13 def after_collection_message(grouping) |
14 I18n.t 'submission_rules.no_late_submission_rule.no_late_message' |
15 end |
16 |
17 def overtime_message(grouping) |
18 I18n.t 'submission_rules.no_late_submission_rule.no_late_message' |
19 end |
20 |
21 # NoLateSubmissionRule works with all Assignments |
22 def assignment_valid? |
23 return !assignment.nil? |
24 end |
25 |
26 # The NoLateSubmissionRule will not add any penalties |
27 def apply_submission_rule(submission) |
28 return submission |
29 end |
30 |
31 def description_of_rule |
32 I18n.t 'submission_rules.no_late_submission_rule.description' |
33 end |
34 |
35 def grader_tab_partial |
36 return 'submission_rules/no_late/grader_tab' |
37 end |
38 end |
Generated on Tue Feb 07 00:07:36 -0500 2012 with rcov 0.9.10