(b *testing.B)
| 243 | } |
| 244 | |
| 245 | func BenchmarkAppendFloat32(b *testing.B) { |
| 246 | f := float32(3.14159) |
| 247 | buf := make([]byte, 0, 5) |
| 248 | b.SetBytes(5) |
| 249 | b.ReportAllocs() |
| 250 | b.ResetTimer() |
| 251 | for i := 0; i < b.N; i++ { |
| 252 | AppendFloat32(buf[0:0], f) |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | func TestAppendInt64(t *testing.T) { |
| 257 | is := []int64{0, 1, -5, -50, int64(tint16), int64(tint32), tint64} |
nothing calls this directly
no test coverage detected
searching dependent graphs…