(b *testing.B)
| 271 | } |
| 272 | |
| 273 | func BenchmarkAppendInt64(b *testing.B) { |
| 274 | is := []int64{0, 1, -5, -50, int64(tint16), int64(tint32), tint64} |
| 275 | l := len(is) |
| 276 | buf := make([]byte, 0, 9) |
| 277 | b.ReportAllocs() |
| 278 | b.ResetTimer() |
| 279 | for i := 0; i < b.N; i++ { |
| 280 | AppendInt64(buf[0:0], is[i%l]) |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | func TestAppendUint64(t *testing.T) { |
| 285 | us := []uint64{0, 1, uint64(tuint16), uint64(tuint32), tuint64} |
nothing calls this directly
no test coverage detected
searching dependent graphs…