| 2810 | } |
| 2811 | |
| 2812 | void CheckImportError(const std::shared_ptr<DataType>& type) { |
| 2813 | ArrayReleaseCallback cb(&c_struct_); |
| 2814 | |
| 2815 | ASSERT_RAISES(Invalid, ImportArray(&c_struct_, type)); |
| 2816 | ASSERT_TRUE(ArrowArrayIsReleased(&c_struct_)); |
| 2817 | Reset(); // for further tests |
| 2818 | cb.AssertCalled(); // was released |
| 2819 | } |
| 2820 | |
| 2821 | void CheckImportError(const std::shared_ptr<Schema>& schema) { |
| 2822 | ArrayReleaseCallback cb(&c_struct_); |
nothing calls this directly
no test coverage detected