(b *testing.B)
| 206 | const N = 24829*1 + 1 |
| 207 | |
| 208 | func BenchmarkBytesXReader(b *testing.B) { |
| 209 | bs := make([]byte, N) |
| 210 | rand.Read(bs) |
| 211 | for i := 0; i < b.N; i++ { |
| 212 | buff := bytes.NewBuffer(bs) |
| 213 | byteXReader(buff, uint64(len(bs))) |
| 214 | } |
| 215 | } |
nothing calls this directly
no test coverage detected