C0 code coverage information

Generated on Sun Jun 11 23:15:15 CEST 2006 with rcov 0.6.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
components/plugins/sidebars/archives_controller.rb 35 27
65.7% 
63.0% 
 1 class Plugins::Sidebars::ArchivesController < Sidebars::Plugin
Calls
      1   Module#const_missing at vendor/rails/activesupport/lib/active_support/dependencies.rb:187
      1   Dependencies::LoadingModule#const_missing at vendor/rails/activesupport/lib/active_support/dependencies.rb:71
      1   ActionWebService::Dispatcher::ActionController::ClassMethods#inherited at vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:33

 2   def self.display_name
 3     "Archives"
 4   end
 5 
 6   def self.description
 7     'Displays links to monthly archives'
 8   end
 9 
10   def self.default_config
11     {'count' => 10, 'show_count' => true}
12   end
13 
14   def content
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

15     @archives = Hash.new
16 
17     Article.find(:all, :conditions => 'published != 0', :order => 'created_at DESC').each do |a|
18       index = a.created_at.strftime("%Y-%m").to_sym
19 
20       if @archives[index].nil?
21         @archives[index] = Hash.new(0)
22         @archives[index][:name] = a.created_at.strftime("%B %Y")
23         @archives[index][:year], @archives[index][:month] = index.to_s.split("-")
24       end
25       @archives[index][:count] += 1
26       
27       break if @archives.size == @sb_config['count'].to_i
28     end
29     
30     @archives = @archives.sort_by { |index, month| index.to_s }.reverse.collect { |a| a.last }
31   end
32 
33   def configure
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

34   end
35 end

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

Valid XHTML 1.0! Valid CSS!