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

Method AssertStreamSchema

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

Source from the content-addressed store, hash-verified

4536class TestArrayStreamExport : public BaseArrayStreamTest {
4537 public:
4538 void AssertStreamSchema(struct ArrowArrayStream* c_stream, const Schema& expected) {
4539 struct ArrowSchema c_schema;
4540 ASSERT_EQ(0, c_stream->get_schema(c_stream, &c_schema));
4541
4542 SchemaExportGuard schema_guard(&c_schema);
4543 ASSERT_FALSE(ArrowSchemaIsReleased(&c_schema));
4544 ASSERT_OK_AND_ASSIGN(auto schema, ImportSchema(&c_schema));
4545 AssertSchemaEqual(expected, *schema, /*check_metadata=*/true);
4546 }
4547
4548 void AssertStreamEnd(struct ArrowArrayStream* c_stream) {
4549 struct ArrowArray c_array;

Callers

nothing calls this directly

Calls 2

ArrowSchemaIsReleasedFunction · 0.85
get_schemaMethod · 0.80

Tested by

no test coverage detected