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

Function test_socket_simple_roundtrip

python/pyarrow/tests/test_ipc.py:934–942  ·  view source on GitHub ↗
(socket_fixture)

Source from the content-addressed store, hash-verified

932
933@pytest.mark.sockets
934def test_socket_simple_roundtrip(socket_fixture):
935 socket_fixture.start_server(do_read_all=False)
936 writer_batches = socket_fixture.write_batches()
937 reader_schema, reader_batches = socket_fixture.stop_and_get_result()
938
939 assert reader_schema.equals(writer_batches[0].schema)
940 assert len(reader_batches) == len(writer_batches)
941 for i, batch in enumerate(writer_batches):
942 assert reader_batches[i].equals(batch)
943
944
945@pytest.mark.sockets

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
start_serverMethod · 0.80
write_batchesMethod · 0.80
stop_and_get_resultMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected