C0 code coverage information

Generated on Sat Feb 02 17:44:23 +0100 2008 with rcov 0.8.1.2


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
examples/templates/template_erubis.rb 53 48
100.0% 
100.0% 
 1 require 'rubygems'
 2 require 'ramaze'
 3 
 4 class MainController < Ramaze::Controller
 5   template_root __DIR__/:template
 6   engine :Erubis
 7 
 8   def index
 9     %{ #{A('Home', :href => :/)} | #{A(:internal)} | #{A(:external)} }
10   end
11 
12   def internal *args
13     @args = args
14     @place = :internal
15     %q{
16 <html>
17   <head>
18     <title>Template::Erubis internal</title>
19   </head>
20   <body>
21   <h1>The internal Template for Erubis</h1>
22     <%= A('Home', :href => :/) %>
23     <p>
24       Here you can pass some stuff if you like, parameters are just passed like this:<br />
25       <%= A("/#@place/one") %><br />
26       <%= A("#@place/two/three") %><br />
27       <%= A("#@place/one?foo=bar") %><br />
28     </p>
29     <div>
30       The arguments you have passed to this action are:
31       <% if @args.empty? %>
32         none
33       <% else %>
34         <% @args.each do |arg| %>
35           <span><%= arg %></span>
36         <% end %>
37       <% end %>
38     </div>
39     <div>
40       <%= request.params.inspect %>
41     </div>
42   </body>
43 </html>
44     }
45   end
46 
47   def external *args
48     @args = args
49     @place = :external
50   end
51 end
52 
53 Ramaze.start

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

Valid XHTML 1.0! Valid CSS!