package cmerge

Import Path
	internal/coverage/cmerge (on

Dependency Relation
	imports 3 packages, and imported by 2 packages

Involved Source Files merge.go
Package-Level Type Names (only one)
/* sort by: | */
Merger provides state and methods to help manage the process of merging together coverage counter data for a given function, for tools that need to implicitly merge counter as they read multiple coverage counter data files. (*Merger) Granularity() coverage.CounterGranularity MergeCounters takes the counter values in 'src' and merges them into 'dst' according to the correct counter mode. (*Merger) Mode() coverage.CounterMode (*Merger) ResetModeAndGranularity() Saturating add does a saturating addition of 'dst' and 'src', returning added value or math.MaxUint32 if there is an overflow. Overflows are recorded in case the client needs to track them. SetModeAndGranularity records the counter mode and granularity for the current merge. In the specific case of merging across coverage data files from different binaries, where we're combining data from more than one meta-data file, we need to check for mode/granularity clashes.
Package-Level Functions (only one)
Saturating add does a saturing addition of 'dst' and 'src', returning added value or math.MaxUint32 plus an overflow flag.