C0 code coverage information

Generated on Sun Jun 11 23:15:10 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
app/controllers/admin/general_controller.rb 44 39
40.9% 
33.3% 
 1 class Admin::GeneralController < Admin::BaseController
Calls
      1   ActionWebService::Dispatcher::ActionController::ClassMethods#inherited at vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:33

 2   def index
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
      1   vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'ActionController::Base#perform_action_without_filters'

 3     @page_cache_size = PageCache.count
Calls
      1   Module#const_missing at vendor/rails/activesupport/lib/active_support/dependencies.rb:187
      1   #<Class:ActiveRecord::Base>#count at vendor/rails/activerecord/lib/active_record/base.rb:507

 4   end
 5   
 6   def update_database
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

 7     @current_version = Migrator.current_schema_version
 8     @needed_version = Migrator.max_schema_version    
 9     @support = Migrator.db_supports_migrations?
10     @needed_migrations = Migrator.available_migrations[@current_version..@needed_version].collect do |mig|   
11       mig.scan(/\d+\_([\w_]+)\.rb$/).flatten.first.humanize
12     end
13   end
14   
15   def migrate
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

16     if request.post?      
17       Migrator.migrate
18       redirect_to :action => 'update_database'
19     end
20   end
21   
22   def update
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

23     if request.post? 
24       Setting.transaction do 
25         for field, value in params[:setting]
26           setting = find_or_create(field)
27           setting.value = value
28           setting.save
29         end
30       end
31       flash[:notice] = 'config updated.'
32       redirect_to :action => 'index'
33     end    
34   end
35       
36   private
37 
38   def find_or_create(name)
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

39     unless setting = Setting.find_by_name(name)
40       setting = Setting.new("name" => name)
41     end
42     setting
43   end
44 end

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

Valid XHTML 1.0! Valid CSS!