C0 code coverage information
Generated on Sun Jun 11 23:15:11 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.
1 class ThemeController < ApplicationController
Calls
1 ActionWebService::Dispatcher::ActionController::ClassMethods#inherited at vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:33
2 caches_page :stylesheets, :javascript, :images
Calls
1 ActionController::Caching::Pages::ClassMethods#caches_page at vendor/rails/actionpack/lib/action_controller/caching.rb:95
3
4 def stylesheets
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
2 vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'ActionController::Base#perform_action_without_filters'
5 render_theme_item(:stylesheets, params[:filename], 'text/css')
Calls
2 ThemeController#render_theme_item at app/controllers/theme_controller.rb:25
2 HashWithIndifferentAccess#default at vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb:12
6 end
7
8 def javascript
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
9 render_theme_item(:javascript, params[:filename], 'text/javascript')
10 end
11
12 def images
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'
13 render_theme_item(:images, params[:filename])
Calls
1 ThemeController#render_theme_item at app/controllers/theme_controller.rb:25
1 HashWithIndifferentAccess#default at vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb:12
14 end
15
16 def error
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
17 render :nothing => true, :status => 404
18 end
19
20 def static_view_test
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'
21 end
22
23 private
24
25 def render_theme_item(type, file, mime = mime_for(file))
Calls
1 ThemeController#mime_for at app/controllers/theme_controller.rb:30
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
2 app/controllers/theme_controller.rb:5 in 'ThemeController#stylesheets'
1 app/controllers/theme_controller.rb:13 in 'ThemeController#images'
26 render :text => "Not Found", :status => 404 and return if file.split(%r{[\\/]}).include?("..")
Calls
1 ActionController::Benchmarking#render at vendor/rails/actionpack/lib/action_controller/benchmarking.rb:46
27 send_file Theme.current_theme_path + "/#{type}/#{file}", :type => mime, :disposition => 'inline', :stream => false
Calls
2 ActionController::Streaming#send_file at vendor/rails/actionpack/lib/action_controller/streaming.rb:54
2 #<Class:Theme>#current_theme_path at app/models/theme.rb:24
28 end
29
30 def mime_for(filename)
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
1 app/controllers/theme_controller.rb:25 in 'ThemeController#render_theme_item'
31 case filename.downcase
32 when /\.js$/
33 'text/javascript'
34 when /\.css$/
35 'text/css'
36 when /\.gif$/
37 'image/gif'
38 when /(\.jpg|\.jpeg)$/
39 'image/jpeg'
40 when /\.png$/
41 'image/png'
42 when /\.swf$/
43 'application/x-shockwave-flash'
44 else
45 'application/binary'
46 end
47 end
48
49
50 end
51
Generated using the rcov code coverage analysis tool for Ruby version 0.6.0.