Jldrill Git C0 Coverage Information - RCov

lib/jldrill/model/problems/KanjiProblem.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/jldrill/model/problems/KanjiProblem.rb 30 22
100.00%
100.00%

Key

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.

Coverage Details

1 require 'jldrill/model/Problem'
2 
3 module JLDrill
4     # Test your kanji reading.  Read the kanji and guess the 
5     # reading and definitions
6     class KanjiProblem < Problem
7         def initialize(item)
8             super(item)
9             @level = 2
10             @questionParts = ["kanji"]
11             @answerParts = ["reading", "definitions", "hint"]
12         end
13 
14         def name
15             return "KanjiProblem"
16         end
17 
18         def clone
19             value = KanjiProblem.new(item)
20             value.assign(self)
21             return value
22         end
23 
24         # Returns false if the kanji is empty and we can't drill this
25         # item.
26         def valid?
27             return !(evaluateAttribute("kanji").empty?)
28         end
29     end    
30 end

Generated on Mon May 23 16:17:46 +0900 2011 with rcov 0.9.8