gopherage/pkg/cov/aggregate.go
func countToBoolean(profile []*cover.Profile) []*cover.Profile {
	setProfile := make([]*cover.Profile, 0, len(profile))
	for _, p := range profile {
		pc := deepCopyProfile(*p)
		for i := range pc.Blocks {
			if pc.Blocks[i].Count > 0 {
				pc.Blocks[i].Count = 1
			}
		}
		setProfile = append(setProfile, &pc)
	}
	return setProfile
}
func countToBoolean(profile []*cover.Profile) []*cover.Profile {
	setProfile := make([]*cover.Profile, 0, len(profile))
	for _, p := range profile {
		pc := deepCopyProfile(*p)
		for i := range pc.Blocks {
			if pc.Blocks[i].Count > 0 {
				pc.Blocks[i].Count = 1
			}
		}
		setProfile = append(setProfile, &pc)
	}
	return setProfile
}
// countToBoolean converts a profile containing hit counts to instead contain
// only 1s or 0s.