(b *testing.B)
| 286 | } |
| 287 | |
| 288 | func BenchmarkWriteFloat32(b *testing.B) { |
| 289 | f := rand.Float32() |
| 290 | wr := NewWriter(Nowhere) |
| 291 | b.SetBytes(5) |
| 292 | b.ReportAllocs() |
| 293 | b.ResetTimer() |
| 294 | for i := 0; i < b.N; i++ { |
| 295 | wr.WriteFloat32(f) |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | func TestWriteInt64(t *testing.T) { |
| 300 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…