Abstracting Services In Ruby C0 Coverage Information - RCov

lib/asir/error.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/asir/error.rb 34 22
76.47%
63.64%

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 module ASIR
2   # Generic API error.
3   class Error < ::Exception
4     # Subclass should override method.
5     class SubclassResponsibility < self; end
6 
7     # Unsupported Feature.
8     class Unsupported < self; end
9 
10     # Requested Stop.
11     class Terminate < self; end
12 
13     # Unforwardable Exception.
14     #
15     # This encapsulates an Exception that should never be
16     # forwarded and re-thrown directly in the client.
17     # E.g.: SystemExit, Interrupt.
18     class Unforwardable < self
19       attr_accessor :original
20       def initialize msg, original = nil, *args
21         if ::Exception === msg
22           original ||= msg
23           msg = "#{original.class.name} #{msg.message}"
24         end
25         @original = original
26         super(msg)
27         self.set_backtrace original && original.backtrace
28       end
29       def self.unforwardable;    @@unforwardable; end
30       def self.unforwardable= x; @@unforwardable = x; end
31       @@unforwardable ||= [ ::SystemExit, ::Interrupt ]
32     end
33   end
34 end

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