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_liquid.rb 65 58
60.0% 
55.2% 
 1 require 'rubygems'
 2 require 'ramaze'
 3 
 4 class MainController < Ramaze::Controller
 5   template_root __DIR__/:template
 6   engine :Liquid
 7 
 8   def index
 9     %{ #{A 'Home', :href => :/} | #{A(:internal)} | #{A(:external)} }
10   end
11 
12   def liquid_hash(place, *args)
13     {
14       'header'     => "The #{place} Template for Liquid",
15       'link_home'  => A('Home', :href => :/),
16       'link_one'   => A("#{place}/one"),
17       'link_two'   => A("#{place}/one/two/three"),
18       'link_three' => A("#{place}?foo=Bar"),
19       'args'       => args,
20       'args_empty' => args.empty?,
21       'params'     => request.params.inspect
22     }
23   end
24 
25 
26   def internal *args
27     @hash = liquid_hash(:internal, *args)
28     %q{
29 <html>
30   <head>
31     <title>Template::Liquid internal</title>
32   </head>
33   <body>
34   <h1>{{header}}</h1>
35     {{link_home}}
36     <p>
37       Here you can pass some stuff if you like, parameters are just passed like this:<br />
38       {{link_one}}<br />
39       {{link_two}}<br />
40       {{link_three}}
41     </p>
42     <div>
43       The arguments you have passed to this action are:
44       {% if args_empty %}
45         none
46       {% else %}
47         {% for arg in args %}
48           <span>{{arg}}</span>
49         {% endfor %}
50       {% endif %}
51     </div>
52     <div>
53       {{params}}
54     </div>
55   </body>
56 </html>
57     }
58   end
59 
60   def external *args
61     @hash = liquid_hash(:external, *args)
62   end
63 end
64 
65 Ramaze.start

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

Valid XHTML 1.0! Valid CSS!