(b *testing.B)
| 218 | } |
| 219 | |
| 220 | func BenchmarkAppendFloat64(b *testing.B) { |
| 221 | f := float64(3.14159) |
| 222 | buf := make([]byte, 0, 9) |
| 223 | b.SetBytes(9) |
| 224 | b.ReportAllocs() |
| 225 | b.ResetTimer() |
| 226 | for i := 0; i < b.N; i++ { |
| 227 | AppendFloat64(buf[0:0], f) |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | func TestAppendFloat32(t *testing.T) { |
| 232 | f := float32(3.14159) |
nothing calls this directly
no test coverage detected
searching dependent graphs…