C0 code coverage information

Generated on Tue May 30 23:34:45 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.
Name Total lines Lines of code Total coverage Code coverage
lib/renderfix.rb 32 25
31.2% 
16.0% 
 1 #
 2 # Rails, by default, only looks for views in a single location, usually in app/views.
 3 # However, we'd *really* like to be able to override views via themes, and that means
 4 # adding something like a search path.  So here it is.
 5 
 6 module ActionView
 7   class Base
 8     alias_method :__render_file, :render_file
 9     
10     def render_file(template_path, use_full_path = true, local_assigns = {})
11       search_path = [
12         "../themes/#{config[:theme]}/views",     # for components
13         "../../themes/#{config[:theme]}/views",  # for normal views
14         "."                                      # fallback
15       ]
16       
17       if use_full_path
18         search_path.each do |prefix|
19           theme_path = prefix+'/'+template_path
20           begin
21             template_extension = pick_template_extension(theme_path)
22           rescue ActionView::ActionViewError => err
23             next
24           end
25           return __render_file(theme_path, use_full_path, local_assigns)
26         end
27       else
28         __render_file(template_path, use_full_path, local_assigns)
29       end
30     end
31   end
32 end

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

Valid XHTML 1.0! Valid CSS!