C0 code coverage information

Generated on Sat Feb 02 17:44:29 +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/struct/fill.rb 23 12
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 Struct
 5 
 6 class Struct
 7 
 8   # Action = Struct.new('Action', :template, :method, :params)
 9   #
10   # a = Action.fill(:template => nil, :method => :meth, :params => [1])
11   # # => #<struct Struct::Action template=nil, method=:meth, params=[1]>
12 
13   def self.fill(hash = {})
14     instance = new
15     to_s = members.first.respond_to?(:to_str)
16     hash.each do |key, value|
17       key = to_s ? key.to_s : key.to_sym
18       next unless members.include?(key)
19       instance.send("#{key}=", value)
20     end
21     instance
22   end
23 end

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

Valid XHTML 1.0! Valid CSS!