Jldrill Git C0 Coverage Information - RCov

lib/jldrill/views/gtk/widgets/InfoWindow.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/jldrill/views/gtk/widgets/InfoWindow.rb 36 30
33.33%
26.67%

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/Gtk/Widget'
2 require 'gtk2'
3 
4 module JLDrill::Gtk
5     class InfoWindow < Gtk::Dialog
6         include Context::Gtk::Widget
7 
8         def initialize(view)
9             @view = view
10             super("Info", nil,
11                     Gtk::Dialog::DESTROY_WITH_PARENT,
12                     [Gtk::Stock::OK, Gtk::Dialog::RESPONSE_ACCEPT])
13 
14             sw = Gtk::ScrolledWindow.new
15             sw.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
16             sw.shadow_type = Gtk::SHADOW_IN
17             self.vbox.add(sw)
18             
19             @contents = Gtk::TextView.new
20             @contents.wrap_mode = Gtk::TextTag::WRAP_WORD
21             @contents.editable = false
22             @contents.cursor_visible = false
23             sw.add(@contents)
24             self.set_default_size(600, 360)
25         end
26 
27         def addContents(string)
28             @contents.buffer.text = string
29         end
30         
31         def execute(string)
32             addContents(string)
33             run
34         end
35     end
36 end

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