C0 code coverage information

Generated on Fri Aug 25 11:26:29 PDT 2006 with rcov 0.7.0


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/html_tools.rb 15 15
26.7% 
26.7% 
 1 module ActionView
 2     module Helpers
 3         module TextHelper
 4             def close_orphaned_tags(code)
 5                 fixed_code = code.dup
 6                 h1 = {}
 7                 h2 = {}
 8                 fixed_code.scan(/\<([^\>\s\/]+)[^\>\/]*?\>/).each { |t| h1[t[0]] ? h1[t[0]] += 1 : h1[t[0]] = 1 }
 9                 fixed_code.scan(/\<\/([^\>\s\/]+)[^\>]*?\>/).each { |t| h2[t[0]] ? h2[t[0]] += 1 : h2[t[0]] = 1 }
10                 h1.each {|k,v| fixed_code += "</#{k}>" * (h1[k] - h2[k].to_i) if h2[k].to_i < v }
11                 fixed_code
12             end
13         end
14     end
15 end

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

Valid XHTML 1.0! Valid CSS!