Method: SimpleCov::Combine.combine

Defined in:
lib/simplecov/combine.rb

.combine(combiner_module, coverage_a, coverage_b) ⇒ Hash

Combine two coverage based on the given combiner_module.

Combiners should always be called through this interface, as it takes care of short-circuiting of one of the coverages is nil.



16
17
18
19
20
# File 'lib/simplecov/combine.rb', line 16

def combine(combiner_module, coverage_a, coverage_b)
  return existing_coverage(coverage_a, coverage_b) if empty_coverage?(coverage_a, coverage_b)

  combiner_module.combine(coverage_a, coverage_b)
end