(bts []byte)
| 74 | } |
| 75 | |
| 76 | func countStrings(bts []byte) int { |
| 77 | r := msgp.NewReader(bytes.NewReader(bts)) |
| 78 | strCounter := strCounter(0) |
| 79 | for { |
| 80 | _, err := r.CopyNext(&strCounter) |
| 81 | if err == io.EOF { |
| 82 | break |
| 83 | } else if err != nil { |
| 84 | panic(err) |
| 85 | } |
| 86 | } |
| 87 | return int(strCounter) |
| 88 | } |
| 89 | |
| 90 | func marshalErrorCtx(m msgp.Marshaler) []byte { |
| 91 | bts, err := m.MarshalMsg(nil) |
no test coverage detected
searching dependent graphs…