Jldrill Git C0 Coverage Information - RCov

lib/jldrill/views/gtk/VocabularyView.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/jldrill/views/gtk/VocabularyView.rb 77 56
72.73%
66.07%

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/views/gtk/widgets/VocabularyWindow'
2 require 'jldrill/contexts/ModifyVocabularyContext'
3 require 'gtk2'
4 
5 module JLDrill::Gtk
6 
7 	class VocabularyView < JLDrill::ModifyVocabularyContext::VocabularyView
8 	
9         attr_reader :vocabularyWindow
10         	
11 		def initialize(context, name)
12 			super(context, name)
13 			@vocabularyWindow = VocabularyWindow.new(self, name)
14             @vocabularyWindow.setFocus
15 		end
16 		
17 		def getWidget
18 			@vocabularyWindow
19 		end
20 
21         def destroy
22             @vocabularyWindow.explicitDestroy
23         end
24 		
25 		def emitDestroyEvent
26 			@vocabularyWindow.signal_emit("destroy")
27 		end
28 
29         def emitAddButtonClickedEvent
30             @vocabularyWindow.addButton.clicked
31         end
32         
33         def update(vocabulary)
34             @vocabularyWindow.update(vocabulary)
35             super(vocabulary)
36         end
37 
38         def updateSearch
39             @vocabularyWindow.updateSearchTable
40         end
41        
42         def getVocabulary
43             @vocabulary = @vocabularyWindow.getVocab
44         end
45 
46         # Returns true if the vocabulary has been added
47         def clearVocabulary
48             super
49             @vocabularyWindow.update(@vocabulary)
50             @vocabularyWindow.updateSearchTable
51             @vocabularyWindow.setFocus
52         end
53 
54         def close
55             @context.exit
56         end
57 
58         def search(kanji, reading)
59             @context.search(kanji, reading)
60         end
61 
62         def preview(item)
63             @context.preview(item)
64         end
65 
66         def dictionaryLoaded?
67             @context.dictionaryLoaded?
68         end
69 
70         def loadDictionary
71             @context.loadDictionary
72         end
73 	
74     end
75     
76 end
77 

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