Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/asir/object_resolving.rb | 15 | 10 | 60.00%
|
50.00%
|
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.
1 module ASIR |
2 # !SLIDE |
3 # Object Resolving |
4 # |
5 module ObjectResolving |
6 class ResolveError < Error; end |
7 def resolve_object name |
8 name.to_s.split(MODULE_SEP).inject(Object){|m, n| m.const_get(n)} |
9 rescue ::Exception => err |
10 raise ResolveError, "cannot resolve #{name.inspect}: #{err.inspect}", err.backtrace |
11 end |
12 end |
13 # !SLIDE END |
14 end |
15 |
Generated on Fri Jan 27 17:37:46 -0600 2012 with rcov 0.9.8