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

Method CheckImport

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

Source from the content-addressed store, hash-verified

1921 void SetUp() override { Reset(); }
1922
1923 void CheckImport(const std::shared_ptr<DataType>& expected) {
1924 SchemaReleaseCallback cb(&c_struct_);
1925
1926 ASSERT_OK_AND_ASSIGN(auto type, ImportType(&c_struct_));
1927 ASSERT_TRUE(ArrowSchemaIsReleased(&c_struct_));
1928 Reset(); // for further tests
1929 cb.AssertCalled(); // was released
1930 AssertTypeEqual(*expected, *type, /*check_metadata=*/true);
1931 }
1932
1933 void CheckImport(const std::shared_ptr<Field>& expected) {
1934 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