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

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

Valid XHTML 1.0! Valid CSS!