Geminstaller C0 Coverage Information - RCov

lib/geminstaller/backward_compatibility.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/geminstaller/backward_compatibility.rb 17 12
82.35%
75.00%

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 # this file supports backward compatibility for prior versions of RubyGems
2 
3 # 0.9.3 reorganized commands to Gem::Commands:: module from Gem::
4 if GemInstaller::RubyGemsVersionChecker.matches?('<0.9.3')
5   LIST_COMMAND_CLASS = Gem::ListCommand
6   QUERY_COMMAND_CLASS = Gem::QueryCommand
7 else
8   LIST_COMMAND_CLASS = Gem::Commands::ListCommand
9   QUERY_COMMAND_CLASS = Gem::Commands::QueryCommand
10 end
11 
12 # >1.3.5 changed Gem::Version::Requirement to Gem::Requirement
13 if GemInstaller::RubyGemsVersionChecker.matches?('>1.3.5')
14   GemInstaller::REQUIREMENT_CLASS = Gem::Requirement
15 else
16   GemInstaller::REQUIREMENT_CLASS = Gem::Version::Requirement
17 end

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