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

Method AssertStreamNext

cpp/src/arrow/c/bridge_test.cc:4936–4948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4934 }
4935
4936 void AssertStreamNext(struct ArrowDeviceArrayStream* c_stream,
4937 const RecordBatch& expected) {
4938 struct ArrowDeviceArray c_array;
4939 ASSERT_EQ(0, c_stream->get_next(c_stream, &c_array));
4940
4941 DeviceArrayExportGuard guard(&c_array);
4942 ASSERT_FALSE(ArrowDeviceArrayIsReleased(&c_array));
4943
4944 ASSERT_OK_AND_ASSIGN(auto batch,
4945 ImportDeviceRecordBatch(&c_array, expected.schema(),
4946 TestDeviceArrayRoundtrip::DeviceMapper));
4947 AssertBatchesEqual(expected, *batch);
4948 }
4949
4950 void AssertStreamNext(struct ArrowDeviceArrayStream* c_stream, const Array& expected) {
4951 struct ArrowDeviceArray c_array;

Callers

nothing calls this directly

Calls 3

AssertBatchesEqualFunction · 0.85
AssertArraysEqualFunction · 0.85

Tested by

no test coverage detected