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/helper/file.rb 20 10
70.0% 
40.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 module Ramaze
 5 
 6   # Helper for quickly push out files with the proper mimetype.
 7 
 8   module FileHelper
 9     private
10 
11     # Sets Content-Type to the mimetype of the file and opens the file you pass
12     # it, then throws :respond to finish off the request.
13 
14     def send_file(file, mime_type = Tool::MIME.type_for(file))
15       response.header["Content-Type"] = mime_type
16       response.body = File.open(file)
17       throw(:respond)
18     end
19   end
20 end

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

Valid XHTML 1.0! Valid CSS!