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

Method CheckImport

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

Source from the content-addressed store, hash-verified

1913 void SetUp() override { Reset(); }
1914
1915 void CheckImport(const std::shared_ptr<DataType>& expected) {
1916 SchemaReleaseCallback cb(&c_struct_);
1917
1918 ASSERT_OK_AND_ASSIGN(auto type, ImportType(&c_struct_));
1919 ASSERT_TRUE(ArrowSchemaIsReleased(&c_struct_));
1920 Reset(); // for further tests
1921 cb.AssertCalled(); // was released
1922 AssertTypeEqual(*expected, *type, /*check_metadata=*/true);
1923 }
1924
1925 void CheckImport(const std::shared_ptr<Field>& expected) {
1926 SchemaReleaseCallback cb(&c_struct_);

Callers

nothing calls this directly

Calls 4

ArrowSchemaIsReleasedFunction · 0.85
AssertFieldEqualFunction · 0.85
AssertCalledMethod · 0.80
ResetFunction · 0.50

Tested by

no test coverage detected