module SimpleCov::Combine::BranchesCombiner

def combine(coverage_a, coverage_b)

Returns:
  • (Hash) -
def combine(coverage_a, coverage_b)
  coverage_a.merge(coverage_b) do |_condition, branches_inside_a, branches_inside_b|
    branches_inside_a.merge(branches_inside_b) do |_branch, a_count, b_count|
      a_count + b_count
    end
  end
end