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

Method CheckImportError

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

Source from the content-addressed store, hash-verified

2832 }
2833
2834 void CheckImportError(const std::shared_ptr<DataType>& type) {
2835 ArrayReleaseCallback cb(&c_struct_);
2836
2837 ASSERT_RAISES(Invalid, ImportArray(&c_struct_, type));
2838 ASSERT_TRUE(ArrowArrayIsReleased(&c_struct_));
2839 Reset(); // for further tests
2840 cb.AssertCalled(); // was released
2841 }
2842
2843 void CheckImportError(const std::shared_ptr<Schema>& schema) {
2844 ArrayReleaseCallback cb(&c_struct_);

Callers

nothing calls this directly

Calls 5

ArrowArrayIsReleasedFunction · 0.85
AssertCalledMethod · 0.80
ImportArrayFunction · 0.70
ImportRecordBatchFunction · 0.70
ResetFunction · 0.50

Tested by

no test coverage detected