Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/jldrill/contexts/LoadFileContext.rb | 34 | 24 | 100.00%
|
100.00%
|
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 'Context/Context' |
2 require 'Context/Bridge' |
3 require 'jldrill/model/Config' |
4 require 'jldrill/contexts/FileProgressContext' |
5 |
6 module JLDrill |
7 |
8 # Loads a file displaying a progress bar as it is loading. |
9 class LoadFileContext < FileProgressContext |
10 |
11 def initialize(viewBridge) |
12 super(viewBridge) |
13 @file = nil |
14 @filename = nil |
15 end |
16 |
17 # File is any file of type DataFile |
18 # Filename is the filename you want to open |
19 def enter(parent, file, filename) |
20 @file = file |
21 @filename = filename |
22 super(parent) |
23 end |
24 |
25 # Returns the filename of the dictionary including the path |
26 def getFilename |
27 return @filename |
28 end |
29 |
30 def getFile |
31 return @file |
32 end |
33 end |
34 end |
Generated on Mon May 23 16:17:45 +0900 2011 with rcov 0.9.8