lib/simplecov/combine/files_combiner.rb
#
# Combines the results for 2 coverages of a file.
#
# @return [Hash]
#
Combines the results for 2 coverages of a file.
Combines the results for 2 coverages of a file .
def combine(coverage_a, coverage_b)
        combination = {"lines" => Combine.combine(LinesCombiner, coverage_a["lines"], coverage_b["lines"])}
        combination["branches"] = Combine.combine(BranchesCombiner, coverage_a["branches"], coverage_b["branches"]) if SimpleCov.branch_coverage?
        combination
      end
def combine ( coverage_a , coverage_b ) combination = { "lines" => Combine . combine ( LinesCombiner , coverage_a [ "lines" ] , coverage_b [ "lines" ] ) } combination [ "branches" ] = Combine . combine ( BranchesCombiner , coverage_a [ "branches" ] , coverage_b [ "branches" ] ) if SimpleCov . branch_coverage? combination end
Combines the results for 2 coverages of a file.
Combines the results for 2 coverages of a file .
None
Hash
coverage_a
coverage_b