C0 code coverage information
Generated on Tue Oct 16 11:40:50 -0400 2007 with rcov 0.8.0
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 module Alexandria
2 module UI
3 # Generalized Dialog for lists of bad isbns. Used for on_import. Can also
4 # be used for on_load library conversions.
5 class BadIsbnsDialog < Gtk::MessageDialog
6 def initialize(parent, message=nil, list = nil)
7 message = _("There's a problem" ) unless message
8 super(parent, Gtk::Dialog::MODAL, Gtk::MessageDialog::WARNING, Gtk::MessageDialog::BUTTONS_CLOSE, message)
9 isbn_container = Gtk::HBox.new
10 the_vbox = self.children.first
11 the_vbox.pack_start(isbn_container)
12 the_vbox.reorder_child(isbn_container, 3)
13 scrolley = Gtk::ScrolledWindow.new
14 isbn_container.pack_start(scrolley)
15 textview = Gtk::TextView.new(Gtk::TextBuffer.new)
16 textview.editable = false
17 textview.cursor_visible = false
18 scrolley.add(textview)
19 list.each do |li|
20 textview.buffer.insert_at_cursor("#{li}\n")
21 end
22 show_all
23 end
24 end
25 end
26 end
Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.