package cmerge Import Path internal/coverage/cmerge (on go.dev) Dependency Relation imports 3 packages, and imported by 2 packagesInvolved Source Files merge.goPackage-Level Type Names (only one)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.
|The pages are generated with Golds v0.5.5. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|