Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/jldrill/model/problems/MeaningProblem.rb | 27 | 22 | 85.19%
|
81.82%
|
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 require 'jldrill/model/Problem' |
2 |
3 module JLDrill |
4 # Shows you the English and you guess the kanji and reading |
5 class MeaningProblem < Problem |
6 def initialize(item) |
7 super(item) |
8 @level = 1 |
9 @questionParts = ["definitions"] |
10 @answerParts = ["kanji", "reading", "hint"] |
11 end |
12 |
13 def name |
14 return "MeaningProblem" |
15 end |
16 |
17 def clone |
18 value = MeaningProblem.new(item) |
19 value.assign(self) |
20 return value |
21 end |
22 |
23 def largeReading? |
24 return evaluateAttribute("kanji").empty? |
25 end |
26 end |
27 end |
Generated on Mon May 23 16:17:46 +0900 2011 with rcov 0.9.8