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

Function test_file_read_all

python/pyarrow/tests/test_ipc.py:179–189  ·  view source on GitHub ↗
(sink_factory)

Source from the content-addressed store, hash-verified

177 lambda: pa.BufferOutputStream()
178])
179def test_file_read_all(sink_factory):
180 fixture = FileFormatFixture(sink_factory)
181
182 batches = fixture.write_batches()
183 file_contents = pa.BufferReader(fixture.get_source())
184
185 reader = pa.ipc.open_file(file_contents)
186
187 result = reader.read_all()
188 expected = pa.Table.from_batches(batches)
189 assert result.equals(expected)
190
191
192def test_open_file_from_buffer(file_fixture):

Callers

nothing calls this directly

Calls 5

FileFormatFixtureClass · 0.85
write_batchesMethod · 0.80
BufferReaderMethod · 0.80
get_sourceMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected