(b *testing.B)
| 115 | } |
| 116 | |
| 117 | func BenchmarkAppendBytesHeader(b *testing.B) { |
| 118 | buf := make([]byte, 0, 9) |
| 119 | N := b.N / 4 |
| 120 | b.ReportAllocs() |
| 121 | b.ResetTimer() |
| 122 | for range N { |
| 123 | AppendBytesHeader(buf[:0], 0) |
| 124 | AppendBytesHeader(buf[:0], uint32(tint8)) |
| 125 | AppendBytesHeader(buf[:0], tuint16) |
| 126 | AppendBytesHeader(buf[:0], tuint32) |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | func TestAppendNil(t *testing.T) { |
| 131 | var bts []byte |
nothing calls this directly
no test coverage detected
searching dependent graphs…