| 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_); |
nothing calls this directly
no test coverage detected