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