(b *testing.B)
| 253 | } |
| 254 | |
| 255 | func BenchmarkReadBoolBytes(b *testing.B) { |
| 256 | buf := []byte{mtrue, mfalse, mtrue, mfalse} |
| 257 | b.SetBytes(1) |
| 258 | b.ReportAllocs() |
| 259 | b.ResetTimer() |
| 260 | o := buf |
| 261 | for i := 0; i < b.N; i++ { |
| 262 | _, buf, _ = ReadBoolBytes(buf) |
| 263 | if len(buf) == 0 { |
| 264 | buf = o |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | func TestReadInt64Bytes(t *testing.T) { |
| 270 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…