C0 code coverage information

Generated on Sat Feb 02 17:44:26 +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/global.rb 116 75
100.0% 
100.0% 
  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 'ostruct'
  5 require 'set'
  6 
  7 require 'ramaze/global/dsl'
  8 
  9 module Ramaze
 10   GlobalDSL.option_dsl do
 11     o "Set the adapter Ramaze will run on.",
 12       :adapter => :webrick, :cli => [:webrick, :mongrel, :thin]
 13 
 14     o "All running threads of Adapter will be collected here.",
 15       :adapters => Set.new
 16 
 17     o "Set the size of Backtrace shown.",
 18       :backtrace_size => 10, :cli => 10
 19 
 20     o "Turn benchmarking every request on.",
 21       :benchmarking => false, :cli => false, :short => :b
 22 
 23     o "Do not log about these requests to static files, values as in Global.ignore",
 24       # Example: [/\.(ico|gif|jpg|png)$/, '/robots.txt']
 25       :boring => [ '/favicon.ico' ]
 26 
 27     o "Use this for general caching and as base for Cache.new.",
 28       :cache => :memory, :cli => [:memory, :memcached, :yaml]
 29 
 30     o "Alternative caches",
 31       :cache_alternative => {}
 32 
 33     o "Turn on naive caching of all requests.",
 34       :cache_all => false, :cli => false
 35 
 36     o "Compile Templates",
 37       :compile => false, :cli => false
 38 
 39     o "Active contribs ",
 40       :contribs => Set.new
 41 
 42     o "All subclasses of Controller are collected here.",
 43       :controllers => Set.new
 44 
 45     o "Start Ramaze within an IRB session",
 46       :console => false, :cli => false, :short => :c
 47 
 48     o "Turn on customized error pages.",
 49       :error_page => true, :cli => true
 50 
 51     o "Caching actions to the filesystem in Global.public_root",
 52       :file_cache => false, :cli => false
 53 
 54     o "Specify what IP Ramaze will respond to - 0.0.0.0 for all",
 55       :host => "0.0.0.0", :cli => '0.0.0.0'
 56 
 57     o "Ignore requests to these paths if no file in public_root exists, absolute path or regex",
 58       # Example: [/\.(ico|gif|jpg|png)$/, '/robots.txt']
 59       :ignore => [ '/favicon.ico' ]
 60 
 61     o "Body set on ignored paths",
 62       :ignore_body => "File not found"
 63 
 64     o "Status set on ignored paths",
 65       :ignore_status => 404
 66 
 67     o "Templating engines to load on startup",
 68       :load_engines => []
 69 
 70     o "All paths to controllers are mapped here.",
 71       :mapping => {}
 72 
 73     o "The place ramaze was started from, useful mostly for debugging",
 74       :origin => :main
 75 
 76     o "Specify port",
 77       :port => 7000, :cli => 7000, :short => :p
 78 
 79     o "Specify directory to serve static files",
 80       :public_root => 'public', :cli => 'public'
 81 
 82     o "Record all Request objects by assigning a filtering Proc to me.",
 83       :record => false
 84 
 85     o "Don't wait until all adapter-threads are finished or killed.",
 86       :run_loose => false, :cli => false
 87 
 88     o "Turn on session for all requests.",
 89       :sessions => true, :cli => true
 90 
 91     o "Turn on BF/DoS protection for error-responses",
 92       :shield => false, :cli => false
 93 
 94     o "What signal to trap to call Ramaze::shutdown",
 95       :shutdown_trap => "SIGINT"
 96 
 97     o "Interval in seconds of the background SourceReload",
 98       :sourcereload => 3, :cli => 3
 99 
100     o "How many adapters Ramaze should spawn.",
101       :spawn => 1, :cli => 1, :short => :s
102 
103     o "Test before start if adapters will be able to connect",
104       :test_connections => true, :cli => true
105 
106     o "Specify directory to serve dynamic files",
107       :template_root => 'view', :cli => 'view'
108 
109     o "Enable directory listing",
110       :list_directories => false, :cli => false
111   end
112 
113   require 'ramaze/global/globalstruct'
114 
115   Global = GlobalStruct.setup(OPTIONS) unless defined?(Global)
116 end

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

Valid XHTML 1.0! Valid CSS!