Jldrill Git C0 Coverage Information - RCov

lib/jldrill/views/gtk/ItemHintView.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/jldrill/views/gtk/ItemHintView.rb 44 33
81.82%
78.79%

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/contexts/DisplayProblemContext'
2 require 'jldrill/views/gtk/widgets/VocabularyHintBox'
3 require 'gtk2'
4 
5 module JLDrill::Gtk
6 
7 	class ItemHintView < JLDrill::DisplayProblemContext::ProblemView::ItemHintView
8 
9         attr_reader :hintBox
10         	
11 		def initialize(context)
12             super(context)
13             @hintBox = VocabularyHintBox.new
14         end
15 
16         def getWidget
17             @hintBox
18         end
19 
20         def mainWindow
21             getWidget.gtkWidgetMainWindow
22         end
23 
24         # Update the indicators
25         def update(problem)
26             if !problem.nil?  && !problem.item.nil?
27                 hintBox.set(problem.item.to_o, @context.differs?(problem))
28             else
29                 hintBox.clear
30             end
31         end
32 
33         def newProblem(problem)
34             super(problem)
35             update(problem)
36         end
37 
38         def updateProblem(problem)
39             super(problem)
40             update(problem)
41         end
42 
43     end
44 end

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