(t *testing.T, N int)
| 49 | func TestWriteReadRandomBitsLarge(t *testing.T) { testRandomBits(t, 1251) } |
| 50 | |
| 51 | func testRandomBits(t *testing.T, N int) { |
| 52 | values := make([]pair, N) |
| 53 | for i := range values { |
| 54 | width := uint(rand.Intn(61) + 1) |
| 55 | value := uint64(rand.Intn(1<<width - 1)) |
| 56 | values[i] = pair{value, width} |
| 57 | } |
| 58 | testReadWrite(t, values) |
| 59 | } |
| 60 | |
| 61 | type pair struct { |
| 62 | value uint64 |
no test coverage detected