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
lib/ramaze.rb 88 56
88.6% 
85.7% 
 1 #          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
 2 # All files in this distribution are subject to the terms of the Ruby license.
 3 
 4 require 'fileutils'
 5 
 6 begin
 7   require 'rubygems'
 8 rescue LoadError
 9 end
10 
11 # The main namespace for Ramaze
12 module Ramaze
13   SEEED = $0.dup
14   APPDIR = File.dirname(File.expand_path($0))
15   BASEDIR = File.dirname(File.expand_path(__FILE__))
16   $LOAD_PATH.unshift BASEDIR
17   $LOAD_PATH.uniq!
18 end
19 
20 Thread.abort_on_exception = true
21 
22 # Bootstrap
23 require 'ramaze/version'
24 require 'ramaze/snippets'
25 require 'ramaze/inform'
26 require 'ramaze/route'
27 require 'ramaze/global'
28 require 'ramaze/cache'
29 require 'ramaze/tool'
30 
31 # Startup
32 require 'ramaze/controller'
33 require 'ramaze/adapter'
34 require 'ramaze/sourcereload'
35 
36 # Complete
37 require 'ramaze/dispatcher'
38 require 'ramaze/template/ezamar'
39 require 'ramaze/contrib'
40 
41 module Ramaze
42 
43   # Each of these classes will be called ::startup upon Ramaze.startup
44 
45   trait :essentials => [
46     Global, Cache, Contrib, Controller, Session, SourceReload, Adapter
47   ]
48 
49   class << self
50 
51     # The one place to start Ramaze, takes an Hash of options to pass on to
52     # each class in trait[:essentials] by calling ::startup on them.
53 
54     def startup options = {}
55       runner_from_caller = caller[0][/^(.*?):\d+/, 1]
56       runner = options.delete(:runner) || runner_from_caller
57 
58       if $0 == runner or options.delete(:force)
59         Inform.info("Starting up Ramaze (Version #{VERSION})")
60         SEEED.replace(runner)
61         APPDIR.replace(File.dirname(File.expand_path(runner)))
62 
63         trait[:essentials].each do |obj|
64           obj.startup(options)
65         end
66       else
67         Global.startup(options)
68       end
69     end
70 
71     # This will be called when you hit ^C or send SIGINT.
72     # It sends ::shutdown to every class in trait[:essentials] and informs you
73     # when it is done
74 
75     def shutdown
76       trait[:essentials].each do |obj|
77         obj.shutdown if obj.respond_to?(:shutdown)
78       end
79 
80       puts("Shutdown Ramaze (it's safe to kill me now if i hang)")
81 
82       exit!
83     end
84 
85     alias start startup
86     alias stop shutdown
87   end
88 end

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

Valid XHTML 1.0! Valid CSS!