(b []byte)
| 84 | } |
| 85 | |
| 86 | func parseString(b []byte) (uint64, []byte) { |
| 87 | slices := bytes.SplitN(b, []byte(":"), 2) |
| 88 | var value, remainder []byte |
| 89 | if len(slices) > 0 { |
| 90 | value = slices[0] |
| 91 | } |
| 92 | if len(slices) > 1 { |
| 93 | remainder = slices[1] |
| 94 | } |
| 95 | v, _ := strconv.ParseUint(string(value), 10, 64) |
| 96 | return v, remainder |
| 97 | } |
| 98 | |
| 99 | func checkTestSample(p *Profile, want []uint64) error { |
| 100 | for _, s := range p.Sample { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…