(b *testing.B)
| 13 | ) |
| 14 | |
| 15 | func BenchmarkReadVarint31(b *testing.B) { |
| 16 | data := []byte{0xff, 0xff, 0xff, 0xff, 0x01} |
| 17 | r := NewReader(data) |
| 18 | for i := 0; i < b.N; i++ { |
| 19 | r.buf = data |
| 20 | ReadVarint31(r) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func BenchmarkReadVarint63(b *testing.B) { |
| 25 | data := []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01} |
nothing calls this directly
no test coverage detected