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

Function test_stream_buffer_set_reader_index

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

Source from the content-addressed store, hash-verified

410
411
412def test_stream_buffer_set_reader_index():
413 reader = Buffer.from_stream(OneByteStream(bytes([0x11, 0x22, 0x33, 0x44, 0x55])))
414 reader.set_reader_index(4)
415 assert reader.read_uint8() == 0x55
416
417
418def test_stream_buffer_set_reader_index_out_of_bound():

Callers

nothing calls this directly

Calls 2

OneByteStreamClass · 0.90
read_uint8Method · 0.45

Tested by

no test coverage detected