(b *testing.B)
| 318 | } |
| 319 | |
| 320 | func BenchmarkReadNil(b *testing.B) { |
| 321 | data := AppendNil(nil) |
| 322 | rd := NewReader(NewEndlessReader(data, b)) |
| 323 | b.ReportAllocs() |
| 324 | b.SetBytes(1) |
| 325 | b.ResetTimer() |
| 326 | for i := 0; i < b.N; i++ { |
| 327 | err := rd.ReadNil() |
| 328 | if err != nil { |
| 329 | b.Fatal(err) |
| 330 | } |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | func TestReadFloat64(t *testing.T) { |
| 335 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…