(b *testing.B)
| 251 | } |
| 252 | |
| 253 | func BenchmarkWriteFloat64(b *testing.B) { |
| 254 | f := rand.Float64() |
| 255 | wr := NewWriter(Nowhere) |
| 256 | b.SetBytes(9) |
| 257 | b.ReportAllocs() |
| 258 | b.ResetTimer() |
| 259 | for i := 0; i < b.N; i++ { |
| 260 | wr.WriteFloat64(f) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func TestWriteFloat32(t *testing.T) { |
| 265 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…