// ResetCoverage sets all of the counters for each edge of the instrumented // source code to 0. func ResetCoverage() { … } // SnapshotCoverage copies the current counter values into coverageSnapshot, // preserving them for later inspection. SnapshotCoverage also rounds each // counter down to the nearest power of two. This lets the coordinator store // multiple values for each counter by OR'ing them together. func SnapshotCoverage() { … } // diffCoverage returns a set of bits set in snapshot but not in base. // If there are no new bits set, diffCoverage returns nil. func diffCoverage(base, snapshot []byte) []byte { … } // countNewCoverageBits returns the number of bits set in snapshot that are not // set in base. func countNewCoverageBits(base, snapshot []byte) int { … } // isCoverageSubset returns true if all the base coverage bits are set in // snapshot. func isCoverageSubset(base, snapshot []byte) bool { … } // hasCoverageBit returns true if snapshot has at least one bit set that is // also set in base. func hasCoverageBit(base, snapshot []byte) bool { … } func countBits(cov []byte) int { … } var coverageEnabled … var coverageSnapshot … var ( _counters … _ecounters … )