Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/jldrill/contexts/ShowInfoContext.rb | 47 | 32 | 61.70%
|
50.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 'Context/View' |
4 |
5 module JLDrill |
6 |
7 class ShowInfoContext < Context::Context |
8 |
9 def initialize(viewBridge) |
10 super(viewBridge) |
11 end |
12 |
13 class InfoView < Context::View |
14 |
15 def initialize(context) |
16 super(context) |
17 end |
18 |
19 # Destroy the info window |
20 def destroy |
21 # Please define in the concrete class |
22 end |
23 |
24 # Display the info to the user |
25 def run(info) |
26 @info = info |
27 # Please run super() and then define the rest |
28 # of the method in the concrete class |
29 end |
30 end |
31 |
32 def createViews |
33 @mainView = @viewBridge.InfoView.new(self) |
34 end |
35 |
36 def destroyViews |
37 @mainView.destroy if !@mainView.nil? |
38 @mainView = nil |
39 end |
40 |
41 def enter(parent, info) |
42 super(parent) |
43 @mainView.run(info) |
44 self.exit |
45 end |
46 end |
47 end |
Generated on Mon May 23 16:17:46 +0900 2011 with rcov 0.9.8