C0 code coverage information
Generated on Sat May 27 21:23:34 CEST 2006 with rcov 0.5.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
2 caches_page :stylesheets, :javascript, :images
3
4 def stylesheets
This method was called by:
2 vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'
5 render_theme_item(:stylesheets, params[:filename], 'text/css')
6 end
7
8 def javascript
9 render_theme_item(:javascript, params[:filename], 'text/javascript')
10 end
11
12 def images
This method was called by:
1 vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'
13 render_theme_item(:images, params[:filename])
14 end
15
16 def error
17 render :nothing => true, :status => 404
18 end
19
20 def static_view_test
This method was called by:
1 vendor/rails/actionpack/lib/action_controller/base.rb:853 in 'perform_action_without_filters'
21 end
22
23 private
24
25 def render_theme_item(type, file, mime = mime_for(file))
This method was called by:
2 app/controllers/theme_controller.rb:5 in 'stylesheets'
1 app/controllers/theme_controller.rb:13 in 'images'
26 render :text => "Not Found", :status => 404 and return if file.split(%r{[\\/]}).include?("..")
27 send_file Theme.current_theme_path + "/#{type}/#{file}", :type => mime, :disposition => 'inline', :stream => false
28 end
29
30 def mime_for(filename)
This method was called by:
1 app/controllers/theme_controller.rb:25 in '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.5.0.