(t *testing.T)
| 330 | } |
| 331 | |
| 332 | func TestReadWriteVarint63(t *testing.T) { |
| 333 | f := func(x uint64) bool { |
| 334 | var buf bytes.Buffer |
| 335 | _, err := WriteVarint63(&buf, x) |
| 336 | if err == ErrRange { |
| 337 | return x > math.MaxInt64 |
| 338 | } |
| 339 | v, err := ReadVarint63(NewReader(buf.Bytes())) |
| 340 | return v == x && err == nil |
| 341 | } |
| 342 | if err := quick.Check(f, nil); err != nil { |
| 343 | t.Error(err) |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | func TestReadWriteVarstr31(t *testing.T) { |
| 348 | f := func(x []byte) bool { |
nothing calls this directly
no test coverage detected