(b *testing.B)
| 155 | } |
| 156 | |
| 157 | func BenchmarkAppendMsgitem(b *testing.B) { |
| 158 | v := item{} |
| 159 | bts := make([]byte, 0, v.Msgsize()) |
| 160 | bts, _ = v.MarshalMsg(bts[0:0]) |
| 161 | b.SetBytes(int64(len(bts))) |
| 162 | b.ReportAllocs() |
| 163 | b.ResetTimer() |
| 164 | for i := 0; i < b.N; i++ { |
| 165 | bts, _ = v.MarshalMsg(bts[0:0]) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func BenchmarkUnmarshalitem(b *testing.B) { |
| 170 | v := item{} |
nothing calls this directly
no test coverage detected