C0 code coverage information

Generated on Sun Jun 11 23:15:16 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
lib/migrator.rb 28 22
53.6% 
40.9% 
 1 module Migrator
 2   mattr_accessor :offer_migration_when_available
Calls
      1   Module#mattr_accessor at vendor/rails/activesupport/lib/active_support/module_attribute_accessors.rb:53

 3   @@offer_migration_when_available = true
 4   
 5   def self.migrations_path
 6     "#{RAILS_ROOT}/db/migrate"
 7   end
 8 
 9   def self.available_migrations
10     Dir["#{migrations_path}/[0-9]*_*.rb"].sort
11   end
12 
13   def self.current_schema_version
14     ActiveRecord::Migrator.current_version rescue 0
15   end
16 
17   def self.max_schema_version
18     available_migrations.size
19   end
20   
21   def self.db_supports_migrations?
22     ActiveRecord::Base.connection.supports_migrations?
23   end
24   
25   def self.migrate(version = nil)
26     ActiveRecord::Migrator.migrate("#{migrations_path}/", version)    
27   end  
28 end

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

Valid XHTML 1.0! Valid CSS!