(b *testing.B)
| 175 | } |
| 176 | |
| 177 | func BenchmarkWriteVarInt(b *testing.B) { |
| 178 | wb := &writeBuffer{w: ioutil.Discard} |
| 179 | |
| 180 | for i := 0; i < b.N; i++ { |
| 181 | wb.writeVarInt(math.MaxInt64) |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | func BenchmarkReadVarInt(b *testing.B) { |
| 186 | b1 := new(bytes.Buffer) |
nothing calls this directly
no test coverage detected