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

Method AssertStreamSchema

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

Source from the content-addressed store, hash-verified

4528class TestArrayStreamExport : public BaseArrayStreamTest {
4529 public:
4530 void AssertStreamSchema(struct ArrowArrayStream* c_stream, const Schema& expected) {
4531 struct ArrowSchema c_schema;
4532 ASSERT_EQ(0, c_stream->get_schema(c_stream, &c_schema));
4533
4534 SchemaExportGuard schema_guard(&c_schema);
4535 ASSERT_FALSE(ArrowSchemaIsReleased(&c_schema));
4536 ASSERT_OK_AND_ASSIGN(auto schema, ImportSchema(&c_schema));
4537 AssertSchemaEqual(expected, *schema, /*check_metadata=*/true);
4538 }
4539
4540 void AssertStreamEnd(struct ArrowArrayStream* c_stream) {
4541 struct ArrowArray c_array;

Callers

nothing calls this directly

Calls 2

ArrowSchemaIsReleasedFunction · 0.85
get_schemaMethod · 0.80

Tested by

no test coverage detected