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

Method AssertStreamSchema

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

Source from the content-addressed store, hash-verified

4915class TestArrayDeviceStreamExport : public BaseArrayStreamTest {
4916 public:
4917 void AssertStreamSchema(struct ArrowDeviceArrayStream* c_stream,
4918 const Schema& expected) {
4919 struct ArrowSchema c_schema;
4920 ASSERT_EQ(0, c_stream->get_schema(c_stream, &c_schema));
4921
4922 SchemaExportGuard schema_guard(&c_schema);
4923 ASSERT_FALSE(ArrowSchemaIsReleased(&c_schema));
4924 ASSERT_OK_AND_ASSIGN(auto schema, ImportSchema(&c_schema));
4925 AssertSchemaEqual(expected, *schema, /*check_metadata=*/true);
4926 }
4927
4928 void AssertStreamEnd(struct ArrowDeviceArrayStream* c_stream) {
4929 struct ArrowDeviceArray c_array;

Callers

nothing calls this directly

Calls 2

ArrowSchemaIsReleasedFunction · 0.85
get_schemaMethod · 0.80

Tested by

no test coverage detected