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

Method AssertStreamNext

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

Source from the content-addressed store, hash-verified

4554 }
4555
4556 void AssertStreamNext(struct ArrowArrayStream* c_stream, const RecordBatch& expected) {
4557 struct ArrowArray c_array;
4558 ASSERT_EQ(0, c_stream->get_next(c_stream, &c_array));
4559
4560 ArrayExportGuard guard(&c_array);
4561 ASSERT_FALSE(ArrowArrayIsReleased(&c_array));
4562
4563 ASSERT_OK_AND_ASSIGN(auto batch, ImportRecordBatch(&c_array, expected.schema()));
4564 AssertBatchesEqual(expected, *batch);
4565 }
4566
4567 void AssertStreamNext(struct ArrowArrayStream* c_stream, const Array& expected) {
4568 struct ArrowArray c_array;

Callers

nothing calls this directly

Calls 3

ArrowArrayIsReleasedFunction · 0.85
AssertBatchesEqualFunction · 0.85
AssertArraysEqualFunction · 0.85

Tested by

no test coverage detected