(t *testing.T)
| 345 | } |
| 346 | |
| 347 | func TestReadWriteVarstr31(t *testing.T) { |
| 348 | f := func(x []byte) bool { |
| 349 | var buf bytes.Buffer |
| 350 | _, err := WriteVarstr31(&buf, x) |
| 351 | if err != nil { |
| 352 | return false |
| 353 | } |
| 354 | got, err := ReadVarstr31(NewReader(buf.Bytes())) |
| 355 | return bytes.Equal(got, x) && err == nil |
| 356 | } |
| 357 | if err := quick.Check(f, nil); err != nil { |
| 358 | t.Error(err) |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | func TestReadWriteVarstrList(t *testing.T) { |
| 363 | f := func(x [][]byte) bool { |
nothing calls this directly
no test coverage detected