Geminstaller C0 Coverage Information - RCov

spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/ext/rake_builder.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/ext/rake_builder.rb 31 16
41.94%
25.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 #--
2 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
3 # All rights reserved.
4 # See LICENSE.txt for permissions.
5 #++
6 
7 require 'rubygems/ext/builder'
8 require 'rubygems/command'
9 
10 class Gem::Ext::RakeBuilder < Gem::Ext::Builder
11 
12   def self.build(extension, directory, dest_path, results)
13     if File.basename(extension) =~ /mkrf_conf/i then
14       cmd = "#{Gem.ruby} #{File.basename extension}"
15       cmd << " #{Gem::Command.build_args.join " "}" unless Gem::Command.build_args.empty?
16       run cmd, results
17     end
18 
19     # Deal with possible spaces in the path, e.g. C:/Program Files
20     dest_path = '"' + dest_path + '"' if dest_path.include?(' ')
21 
22     cmd = ENV['rake'] || "#{Gem.ruby} -rubygems #{Gem.bin_path('rake')}" rescue Gem.default_exec_format % 'rake'
23     cmd += " RUBYARCHDIR=#{dest_path} RUBYLIBDIR=#{dest_path}" # ENV is frozen
24 
25     run cmd, results
26 
27     results
28   end
29 
30 end
31 

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