| Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
|---|---|---|---|---|
| app/models/ta_membership.rb | 11 | 9 | 45.45%
|
44.44%
|
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 TaMembership < Membership |
2 validate :must_be_a_ta |
3 |
4 def must_be_a_ta |
5 if user && !user.is_a?(Ta) |
6 errors.add("User must be a ta") |
7 return false |
8 end |
9 end |
10 |
11 end |
Generated on Tue Feb 07 00:07:36 -0500 2012 with rcov 0.9.10