MCPcopy Index your code
hub / github.com/apache/fory / test_stream_buffer_short_read_error

Function test_stream_buffer_short_read_error

python/pyfory/tests/test_buffer.py:432–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430
431
432def test_stream_buffer_short_read_error():
433 reader = Buffer.from_stream(OneByteStream(b"\x01\x02\x03"))
434 with pytest.raises(Exception, match="Buffer out of bound"):
435 reader.read_uint32()
436
437
438if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

OneByteStreamClass · 0.90
read_uint32Method · 0.45

Tested by

no test coverage detected