Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/jldrill/contexts/AppendFileContext.rb | 41 | 34 | 56.10%
|
47.06%
|
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/LoadQuizContext' |
5 require 'jldrill/contexts/MergeQuizContext' |
6 |
7 module JLDrill |
8 |
9 class AppendFileContext < Context::Context |
10 |
11 def initialize(viewBridge) |
12 super(viewBridge) |
13 @loadQuizContext = LoadQuizContext.new(@viewBridge) |
14 @mergeQuizContext = MergeQuizContext.new(@viewBridge) |
15 end |
16 |
17 def createViews |
18 @mainView = @viewBridge.VBoxView.new(self) |
19 end |
20 |
21 def destroyViews |
22 @mainView = nil |
23 end |
24 |
25 def exitAppendFileContext |
26 self.exit |
27 end |
28 |
29 def enter(parent, quiz) |
30 super(parent) |
31 newQuiz = Quiz.new |
32 @loadQuizContext.onExit do |
33 @mergeQuizContext.onExit do |
34 exitAppendFileContext |
35 end |
36 @mergeQuizContext.enter(self, quiz, newQuiz) |
37 end |
38 @loadQuizContext.enter(self, newQuiz) |
39 end |
40 end |
41 end |
Generated on Mon May 23 16:17:45 +0900 2011 with rcov 0.9.8