C0 code coverage information

Generated on Sat May 27 21:23:37 CEST 2006 with rcov 0.5.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.
Name Total lines Lines of code Total coverage Code coverage
app/models/sidebar.rb 36 27
61.1% 
48.1% 
 1 require_dependency 'sidebars/sidebar_controller'
 2 
 3 class Sidebar < ActiveRecord::Base
 4 #  acts_as_list
 5   serialize :active_config
 6   serialize :staged_config
 7 
 8   def self.find_all_visible
This method was called by:

      5   components/sidebars/sidebar_controller.rb:90 in 'enabled_sidebars'
      1   components/sidebars/sidebar_controller.rb:90 in 'enabled_sidebars'

 9     find :all, :conditions => 'active_position is not null', :order => 'active_position'
10   end
11 
12   def self.find_all_staged
13     find :all, :conditions => 'staged_position is not null', :order => 'staged_position'
14   end
15 
16   def self.purge
17     delete_all('active_position is null and staged_position is null')
18   end
19 
20   def publish
21     self.active_config=self.staged_config
22     self.active_position=self.staged_position
23   end
24 
25   def sidebar_controller
26     @sidebar_controller||=Sidebars::SidebarController.available_sidebars.find { |s| s.short_name == self.controller }
27   end
28 
29   def active_config
30     self[:active_config]||{}
31   end
32 
33   def html_id
34     controller+'-'+id.to_s
35   end
36 end

Generated using the rcov code coverage analysis tool for Ruby version 0.5.0.

Valid XHTML 1.0! Valid CSS!