Jldrill Git C0 Coverage Information - RCov

lib/jldrill/views/gtk/FilenameSelectorView.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/jldrill/views/gtk/FilenameSelectorView.rb 44 33
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/Config'
2 require 'jldrill/views/gtk/widgets/SelectorWindow'
3 require 'jldrill/contexts/GetFilenameContext'
4 require 'gtk2'
5 
6 module JLDrill::Gtk
7 
8 	class FilenameSelectorView < JLDrill::GetFilenameContext::FilenameSelectorView
9         attr_reader :selectorWindow
10         	
11 		def initialize(context)
12 			super(context)
13 			@selectorWindow = nil
14 		end
15 		
16 		def getWidget
17 			@selectorWindow
18 		end
19 
20         def destroy
21             @selectorWindow.destroy
22             @selectorWindow = nil
23         end
24 
25         def createSelectorWindow(type)
26             if @selectorWindow.nil?
27                 # The tests create the selector window in advance.
28                 # So if the window is non-nil, don't create it.
29                 # Once the window has run once, it should be reset to nil.
30                 @selectorWindow = SelectorWindow.new(type)
31             end
32          end
33 
34         def run(type)
35             createSelectorWindow(type)
36             @selectorWindow.current_folder = @directory unless @directory.nil?
37             retVal = @selectorWindow.execute
38             @filename = @selectorWindow.chosenFilename
39             @directory = @selectorWindow.chosenDirectory
40             retVal
41         end
42     end
43 end
44 

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