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

Function test_open_stream_options

python/pyarrow/tests/test_ipc.py:337–348  ·  view source on GitHub ↗
(stream_fixture, options)

Source from the content-addressed store, hash-verified

335 pa.ipc.IpcReadOptions(use_threads=False),
336])
337def test_open_stream_options(stream_fixture, options):
338 stream_fixture.write_batches()
339 source = stream_fixture.get_source()
340
341 reader = pa.ipc.open_stream(source, options=options)
342
343 reader.read_all()
344 st = reader.stats
345 assert st.num_messages == 6
346 assert st.num_record_batches == 5
347
348 assert tuple(st) == tuple(stream_fixture.write_stats)
349
350
351def test_open_stream_with_wrong_options(stream_fixture):

Callers

nothing calls this directly

Calls 2

write_batchesMethod · 0.80
get_sourceMethod · 0.80

Tested by

no test coverage detected