(t *testing.T)
| 360 | } |
| 361 | |
| 362 | func TestReadWriteVarstrList(t *testing.T) { |
| 363 | f := func(x [][]byte) bool { |
| 364 | var buf bytes.Buffer |
| 365 | _, err := WriteVarstrList(&buf, x) |
| 366 | if err != nil { |
| 367 | return false |
| 368 | } |
| 369 | got, err := ReadVarstrList(NewReader(buf.Bytes())) |
| 370 | return testutil.DeepEqual(got, x) && err == nil |
| 371 | } |
| 372 | if err := quick.Check(f, nil); err != nil { |
| 373 | t.Error(err) |
| 374 | } |
| 375 | } |
nothing calls this directly
no test coverage detected