MCPcopy Create free account
hub / github.com/apache/arrow / test_stream_read_all

Function test_stream_read_all

python/pyarrow/tests/test_ipc.py:728–735  ·  view source on GitHub ↗
(stream_fixture)

Source from the content-addressed store, hash-verified

726
727
728def test_stream_read_all(stream_fixture):
729 batches = stream_fixture.write_batches()
730 file_contents = pa.BufferReader(stream_fixture.get_source())
731 reader = pa.ipc.open_stream(file_contents)
732
733 result = reader.read_all()
734 expected = pa.Table.from_batches(batches)
735 assert result.equals(expected)
736
737
738@pytest.mark.pandas

Callers

nothing calls this directly

Calls 4

write_batchesMethod · 0.80
BufferReaderMethod · 0.80
get_sourceMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected