(b *testing.B)
| 410 | } |
| 411 | |
| 412 | func BenchmarkAppendTime(b *testing.B) { |
| 413 | t := time.Now() |
| 414 | b.SetBytes(15) |
| 415 | buf := make([]byte, 0, 15) |
| 416 | b.ReportAllocs() |
| 417 | b.ResetTimer() |
| 418 | for i := 0; i < b.N; i++ { |
| 419 | AppendTime(buf[0:0], t) |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | func BenchmarkAppendTimeExt(b *testing.B) { |
| 424 | t := time.Now() |
nothing calls this directly
no test coverage detected
searching dependent graphs…