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/simple.rb 56 30
100.0% 
100.0% 
 1 require 'rubygems'
 2 require 'ramaze'
 3 
 4 # A very simple little application, you can simply run it and
 5 # point your browser to http://localhost:7000
 6 # you can change the port by setting
 7 # Global.port = 80
 8 # this most likely requires root-privileges though.
 9 
10 # This example shows following (requests to the mentioned base-url) :
11 # - simple text-output from the controller    [ / ]
12 # - showing you what your request looked like [ /simple ]
13 # - joining two strings                       [ /join/string1/string2 ]
14 # - join arbitary strings                     [ /join_all/string1/string2/string3 ... ]
15 # - sum two numbers                           [ /sum/1/3 ]
16 # - show if you made a POST or GET request    [ /post_or_get ]
17 # - How to map your controllers to urls       [ /other ]
18 # - Also try out the error-page, just pass something odd ;)
19 
20 class SimpleController < Ramaze::Controller
21   map '/'
22 
23   def index
24     "simple"
25   end
26 
27   def simple
28     request.inspect
29   end
30 
31   def join first, second
32     [first, second].join
33   end
34 
35   def join_all *strings
36     strings.join
37   end
38   
39   def sum first, second
40     first.to_i + second.to_i
41   end
42   
43   def post_or_get
44     request.post? ? 'POST' : 'GET'
45   end
46 end
47 
48 class OtherController < Ramaze::Controller
49   map '/other'
50 
51   def index
52     "Hello, World from #{self.class.name}"
53   end
54 end
55 
56 Ramaze.start

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

Valid XHTML 1.0! Valid CSS!