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
app/models/theme.rb 52 41
100.0% 
100.0% 
 1 class Theme
Calls
      1   Class#inherited at vendor/rails/activesupport/lib/active_support/class_inheritable_attributes.rb:108

 2   cattr_accessor :cache_theme_lookup
Calls
      1   Class#cattr_accessor at vendor/rails/activesupport/lib/active_support/class_attribute_accessors.rb:53

 3   @@cache_theme_lookup = false
 4 
 5   attr_accessor :name, :path
Calls
      4   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47

 6 
 7   def initialize(name, path)
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
      8   app/models/theme.rb:34 in '#<Class:Theme>#theme_from_path'

 8     @name, @path = name, path
 9   end
10   
11   def layout
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
      6   app/controllers/application.rb:37 in 'ApplicationController#theme_layout'

12     "../../themes/#{name}/layouts/default"
13   end
14 
15   def description
Calls
      1   #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
      1   app/views/admin/themes/index.rhtml:4 in 'ActionView::Base::CompiledTemplates#_run_html_admin_themes_index'

16     readme = File.read("#{path}/about.markdown")
17     HtmlEngine.transform(readme, "markdown smartypants")
Calls
      1   #<Class:HtmlEngine>#transform at lib/html_engine.rb:3

18   end
19   
20   def self.themes_root
Called by
      9   app/models/theme.rb:25 in '#<Class:Theme>#current_theme_path'
      1   app/models/theme.rb:48 in '#<Class:Theme>#search_theme_directory'

21     RAILS_ROOT + "/themes"
22   end
23 
24   def self.current_theme_path
Called by
      7   app/models/theme.rb:29 in '#<Class:Theme>#current'
      2   app/controllers/theme_controller.rb:27 in 'ThemeController#render_theme_item'

25     "#{themes_root}/#{config[:theme]}"
Calls
      9   Object#config at app/models/configuration.rb:18
      9   ConfigManager#[] at app/models/config_manager.rb:18
      9   #<Class:Theme>#themes_root at app/models/theme.rb:20

26   end
27 
28   def self.current
Called by
      6   app/controllers/application.rb:37 in 'ApplicationController#theme_layout'
      1   app/controllers/admin/themes_controller.rb:5 in 'Controllers::Admin::ThemesController#index'

29     theme_from_path(current_theme_path)
Calls
      7   #<Class:Theme>#theme_from_path at app/models/theme.rb:32
      7   #<Class:Theme>#current_theme_path at app/models/theme.rb:24

30   end
31   
32   def self.theme_from_path(path)
Called by
      7   app/models/theme.rb:29 in '#<Class:Theme>#current'
      1   app/models/theme.rb:39 in '#<Class:Theme>#find_all'

33     name = path.scan(/[-\w]+$/i).flatten.first
34     self.new(name, path)
Calls
      8   Theme#initialize at app/models/theme.rb:7

35   end
36 
37   def self.find_all
Called by
      1   app/controllers/admin/themes_controller.rb:4 in 'Controllers::Admin::ThemesController#index'

38     installed_themes.inject([]) do |array, path|
Calls
      1   #<Class:Theme>#installed_themes at app/models/theme.rb:43

39       array << theme_from_path(path)
Calls
      1   #<Class:Theme>#theme_from_path at app/models/theme.rb:32

40     end
41   end
42 
43   def self.installed_themes
Called by
      1   app/models/theme.rb:38 in '#<Class:Theme>#find_all'

44     cache_theme_lookup ? @theme_cache ||= search_theme_directory : search_theme_directory
Calls
      1   #<Class:Theme>#search_theme_directory at app/models/theme.rb:47
      1   #<Class:Theme>#cache_theme_lookup at (eval):5

45   end  
46 
47   def self.search_theme_directory
Called by
      1   app/models/theme.rb:44 in '#<Class:Theme>#installed_themes'

48     Dir.glob("#{themes_root}/[-_a-zA-Z0-9]*").collect do |file|
Calls
      1   #<Class:Theme>#themes_root at app/models/theme.rb:20

49       file if File.directory?(file)      
50     end.compact
51   end  
52 end

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

Valid XHTML 1.0! Valid CSS!