C0 code coverage information

Generated on Sat Feb 02 17:44:28 +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/snippets/kernel/__dir__.rb 21 8
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 # Extensions for Kernel
 5 
 6 module Kernel
 7   # This is similar to +__FILE__+ and +__LINE__+, and returns a String
 8   # representing the directory of the current file is.
 9   # Unlike +__FILE__+ the path returned is absolute.
10   #
11   # This method is convenience for the
12   #  File.expand_path(File.dirname(__FILE__))
13   # idiom.
14   #
15   unless defined?__DIR__
16     def __DIR__()
17       filename = caller[0][/(.*?):/, 1]
18       File.expand_path(File.dirname(filename))
19     end
20   end
21 end

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

Valid XHTML 1.0! Valid CSS!