Geminstaller C0 Coverage Information - RCov

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

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/require_paths_builder.rb 17 15
41.18%
33.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 require 'rubygems'
2 
3 module Gem::RequirePathsBuilder
4   def write_require_paths_file_if_needed(spec = @spec, gem_home = @gem_home)
5     return if spec.require_paths == ["lib"] &&
6               (spec.bindir.nil? || spec.bindir == "bin")
7     file_name = File.join(gem_home, 'gems', "#{@spec.full_name}", ".require_paths")
8     file_name.untaint
9     File.open(file_name, "w") do |file|
10       spec.require_paths.each do |path|
11         file.puts path
12       end
13       file.puts spec.bindir if spec.bindir
14     end
15   end
16 end
17 

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