Sha256: c532fa837fc7b12b397c75accb72bf87181dfa2f9f41ec8c8b288e4e032d666e
Contents?: true
Size: 680 Bytes
Versions: 23
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module SimpleCov module Combine # # Handle combining two coverage results for same file # # Should be called through `SimpleCov.combine`. module FilesCombiner module_function # # Combines the results for 2 coverages of a file. # # @return [Hash] # 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 end end end
Version data entries
23 entries across 22 versions & 8 rubygems