(t *testing.T)
| 193 | } |
| 194 | |
| 195 | func TestReadVarBytesRead(t *testing.T) { |
| 196 | bs := make([]byte, 2048+1) |
| 197 | for i := 0; i < len(bs); i++ { |
| 198 | bs[i] = byte(i) |
| 199 | } |
| 200 | buff := bytes.NewBuffer(bs) |
| 201 | read, err := byteXReader(buff, uint64(len(bs))) |
| 202 | assert.Nil(t, err) |
| 203 | assert.Equal(t, bs, read) |
| 204 | } |
| 205 | |
| 206 | const N = 24829*1 + 1 |
| 207 |
nothing calls this directly
no test coverage detected