Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/jldrill/contexts/ShowAboutContext.rb | 41 | 30 | 68.29%
|
56.67%
|
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 require 'jldrill/model/AboutInfo' |
5 |
6 module JLDrill |
7 |
8 class ShowAboutContext < Context::Context |
9 |
10 def initialize(viewBridge) |
11 super(viewBridge) |
12 end |
13 |
14 class AboutView < Context::View |
15 |
16 def initialize(context, about) |
17 super(context) |
18 @about = about |
19 end |
20 |
21 # Open the window and display the about information |
22 def run |
23 # Please define in the concrete class |
24 end |
25 end |
26 |
27 def createViews |
28 @mainView = @viewBridge.AboutView.new(self, AboutInfo.new) |
29 end |
30 |
31 def destroyViews |
32 @mainView = nil |
33 end |
34 |
35 def enter(parent) |
36 super(parent) |
37 @mainView.run |
38 self.exit |
39 end |
40 end |
41 end |
Generated on Mon May 23 16:17:46 +0900 2011 with rcov 0.9.8