Abstracting Services In Ruby C0 Coverage Information - RCov

lib/asir/initialization.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/asir/initialization.rb 27 12
92.59%
83.33%

Key

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.

Coverage Details

1 
2 module ASIR
3   # !SLIDE
4   # Object Initialization
5   #
6   # Support initialization by Hash.
7   #
8   # E.g.:
9   # @@@
10   #   Foo.new(:bar => 1, :baz => 2)
11   # @@@
12   # ->
13   # @@@
14   #   obj = Foo.new; obj.bar = 1; obj.baz = 2; obj
15   # @@@
16   module Initialization
17     def initialize opts = nil
18       opts ||= EMPTY_HASH
19       initialize_before_opts if respond_to? :initialize_before_opts
20       opts.each do | k, v |
21         send(:"#{k}=", v)
22       end
23       initialize_after_opts if respond_to? :initialize_after_opts
24     end
25   end # module
26 end # module
27 

Generated on Fri Jan 27 17:37:46 -0600 2012 with rcov 0.9.8