Geminstaller C0 Coverage Information - RCov

spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/exceptions.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/exceptions.rb 91 41
91.21%
80.49%

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 # Base exception class for RubyGems.  All exception raised by RubyGems are a
3 # subclass of this one.
4 class Gem::Exception < RuntimeError; end
5 
6 class Gem::CommandLineError < Gem::Exception; end
7 
8 class Gem::DependencyError < Gem::Exception; end
9 
10 class Gem::DependencyRemovalException < Gem::Exception; end
11 
12 ##
13 # Raised when attempting to uninstall a gem that isn't in GEM_HOME.
14 
15 class Gem::GemNotInHomeException < Gem::Exception
16   attr_accessor :spec
17 end
18 
19 class Gem::DocumentError < Gem::Exception; end
20 
21 ##
22 # Potentially raised when a specification is validated.
23 class Gem::EndOfYAMLException < Gem::Exception; end
24 
25 ##
26 # Signals that a file permission error is preventing the user from
27 # installing in the requested directories.
28 class Gem::FilePermissionError < Gem::Exception
29   def initialize(path)
30     super("You don't have write permissions into the #{path} directory.")
31   end
32 end
33 
34 ##
35 # Used to raise parsing and loading errors
36 class Gem::FormatException < Gem::Exception
37   attr_accessor :file_path
38 end
39 
40 class Gem::GemNotFoundException < Gem::Exception
41   def initialize(msg, name=nil, version=nil, errors=nil)
42     super msg
43     @name = name
44     @version = version
45     @errors = errors
46   end
47 
48   attr_reader :name, :version, :errors
49 end
50 
51 class Gem::InstallError < Gem::Exception; end
52 
53 ##
54 # Potentially raised when a specification is validated.
55 class Gem::InvalidSpecificationException < Gem::Exception; end
56 
57 class Gem::OperationNotSupportedError < Gem::Exception; end
58 
59 ##
60 # Signals that a remote operation cannot be conducted, probably due to not
61 # being connected (or just not finding host).
62 #--
63 # TODO: create a method that tests connection to the preferred gems server.
64 # All code dealing with remote operations will want this.  Failure in that
65 # method should raise this error.
66 class Gem::RemoteError < Gem::Exception; end
67 
68 class Gem::RemoteInstallationCancelled < Gem::Exception; end
69 
70 class Gem::RemoteInstallationSkipped < Gem::Exception; end
71 
72 ##
73 # Represents an error communicating via HTTP.
74 class Gem::RemoteSourceException < Gem::Exception; end
75 
76 class Gem::VerificationError < Gem::Exception; end
77 
78 ##
79 # Raised to indicate that a system exit should occur with the specified
80 # exit_code
81 
82 class Gem::SystemExitException < SystemExit
83   attr_accessor :exit_code
84 
85   def initialize(exit_code)
86     @exit_code = exit_code
87 
88     super "Exiting RubyGems with exit_code #{exit_code}"
89   end
90 
91 end

Generated on Mon May 10 23:40:28 -0700 2010 with rcov 0.9.8