Geminstaller C0 Coverage Information - RCov

spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/package/f_sync_dir.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/fixture/rubygems_dist/rubygems-trunk/lib/rubygems/package/f_sync_dir.rb 23 10
65.22%
30.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 # -*- coding: utf-8 -*-
2 #--
3 # Copyright (C) 2004 Mauricio Julio Fernández Pradier
4 # See LICENSE.txt for additional licensing information.
5 #++
6 
7 module Gem::Package::FSyncDir
8 
9   private
10 
11   ##
12   # make sure this hits the disc
13 
14   def fsync_dir(dirname)
15     dir = open dirname, 'r'
16     dir.fsync
17   rescue # ignore IOError if it's an unpatched (old) Ruby
18   ensure
19     dir.close if dir rescue nil
20   end
21 
22 end
23 

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