Jldrill Git C0 Coverage Information - RCov

lib/jldrill/spec/Fakes.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/jldrill/spec/Fakes.rb 38 26
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 'Context/Context'
2 require 'Context/View'
3 require 'Context/Bridge'
4 require 'Context/Gtk/Widget'
5 
6 # These are some useful fakes for testing with
7 
8 module JLDrill
9     module Fakes
10         # This is a fake App that doesn't start up the GTK
11         # initialization.  That way the main run loop doesn't
12         # get started.
13         class App < Context::Context
14             attr_reader :mainContext
15             
16             def initialize(bridgeClass, mainContextClass)
17                 bridge = Context::Bridge.new(bridgeClass)
18                 super(bridge)
19                 @mainContext = mainContextClass.new(bridge)
20                 @mainContext.inTests = true
21             end
22             
23             def enter
24                 super(nil)
25                 @mainContext.enter(self)
26             end
27         end
28     end
29 end
30 
31 module Context::Gtk::Widget
32 
33     # This will turn off the drawing of the widgets in the tests
34     def isInTests?
35         true
36     end
37 
38 end

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