diff options
Diffstat (limited to 'sample/coverage.rb')
| -rw-r--r-- | sample/coverage.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/coverage.rb b/sample/coverage.rb index 1e036f95f9..42ba89fd50 100644 --- a/sample/coverage.rb +++ b/sample/coverage.rb @@ -38,7 +38,7 @@ at_exit do end cov else - p line + p line warn("coverage file corrupted, ignoring: #{ cfile }") break [] end @@ -49,7 +49,7 @@ at_exit do end end - open(cfile, "w") do |out| + File.open(cfile, "w") do |out| covs.zip(sources, pcovs).each_with_index do |(cov, line, pcov), idx| cov += pcov || 0 if cov cov = (cov ? (cov == 0 ? "#####" : cov.to_s) : "-").rjust(9) |
