(t *testing.T)
| 168 | } |
| 169 | |
| 170 | func TestReadVarUint32Small7RejectsOverflowFifthByte(t *testing.T) { |
| 171 | buf := NewByteBuffer([]byte{0x80, 0x80, 0x80, 0x80, 0x10}) |
| 172 | var err Error |
| 173 | _ = buf.ReadVarUint32Small7(&err) |
| 174 | require.True(t, err.HasError()) |
| 175 | } |
| 176 | |
| 177 | func TestReadVarUint32Small7StreamRejectsOverflowFifthByte(t *testing.T) { |
| 178 | buf := NewByteBufferFromReader(bytes.NewReader([]byte{0x80, 0x80, 0x80, 0x80, 0x10}), 4) |
nothing calls this directly
no test coverage detected