rcov 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rcov/code_coverage_analyzer.rb +4 -1
- data/lib/rcov/version.rb +2 -2
- metadata +1 -1
@@ -157,7 +157,10 @@ module Rcov
|
|
157
157
|
def aggregate_data(aggregated_data, delta)
|
158
158
|
delta.each_pair do |file, cov_arr|
|
159
159
|
dest = (aggregated_data[file] ||= Array.new(cov_arr.size, 0))
|
160
|
-
cov_arr.each_with_index
|
160
|
+
cov_arr.each_with_index do |x,i|
|
161
|
+
dest[i] ||= 0
|
162
|
+
dest[i] += x.to_i
|
163
|
+
end
|
161
164
|
end
|
162
165
|
end
|
163
166
|
|
data/lib/rcov/version.rb
CHANGED