We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9487c commit 08cac5aCopy full SHA for 08cac5a
lib/simplecov/combine/lines_combiner.rb
@@ -10,11 +10,9 @@ module LinesCombiner
10
module_function
11
12
def combine(coverage_a, coverage_b)
13
- coverage_a
14
- .zip(coverage_b)
15
- .map do |coverage_a_val, coverage_b_val|
16
- merge_line_coverage(coverage_a_val, coverage_b_val)
17
- end
+ coverage_a.map.with_index do |coverage_a_val, index|
+ merge_line_coverage(coverage_a_val, coverage_b[index])
+ end
18
end
19
20
# Return depends on coverage in a specific line
0 commit comments