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

Method CheckImportError

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

Source from the content-addressed store, hash-verified

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_);

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