@@ -70,8 +70,8 @@ namespace sparrow::pycapsule
7070 SUBCASE (" creates_valid_capsule" )
7171 {
7272 auto arr = make_test_array ();
73- // Note: ExportArrowSchemaPyCapsule moves from arr, so arr becomes invalid after
74- PyObject* schema_capsule = ExportArrowSchemaPyCapsule (arr);
73+ // Note: export_arrow_schema_pycapsule moves from arr, so arr becomes invalid after
74+ PyObject* schema_capsule = export_arrow_schema_pycapsule (arr);
7575
7676 REQUIRE_NE (schema_capsule, nullptr );
7777 CHECK (PyCapsule_CheckExact (schema_capsule));
@@ -93,7 +93,7 @@ namespace sparrow::pycapsule
9393 SUBCASE (" capsule_has_destructor" )
9494 {
9595 auto arr = make_test_array ();
96- PyObject* schema_capsule = ExportArrowSchemaPyCapsule (arr);
96+ PyObject* schema_capsule = export_arrow_schema_pycapsule (arr);
9797
9898 REQUIRE_NE (schema_capsule, nullptr );
9999
@@ -119,7 +119,7 @@ namespace sparrow::pycapsule
119119 SUBCASE (" creates_valid_capsule" )
120120 {
121121 auto arr = make_test_array ();
122- PyObject* array_capsule = ExportArrowArrayPyCapsule (arr);
122+ PyObject* array_capsule = export_arrow_array_pycapsule (arr);
123123
124124 REQUIRE_NE (array_capsule, nullptr );
125125 CHECK (PyCapsule_CheckExact (array_capsule));
@@ -139,7 +139,7 @@ namespace sparrow::pycapsule
139139 SUBCASE (" capsule_has_destructor" )
140140 {
141141 auto arr = make_test_array ();
142- PyObject* array_capsule = ExportArrowArrayPyCapsule (arr);
142+ PyObject* array_capsule = export_arrow_array_pycapsule (arr);
143143
144144 REQUIRE_NE (array_capsule, nullptr );
145145
@@ -158,7 +158,7 @@ namespace sparrow::pycapsule
158158 SUBCASE (" array_has_correct_length" )
159159 {
160160 auto arr = make_test_array ();
161- PyObject* array_capsule = ExportArrowArrayPyCapsule (arr);
161+ PyObject* array_capsule = export_arrow_array_pycapsule (arr);
162162
163163 REQUIRE_NE (array_capsule, nullptr );
164164
@@ -177,9 +177,9 @@ namespace sparrow::pycapsule
177177 SUBCASE (" returns_valid_schema_pointer" )
178178 {
179179 auto arr = make_test_array ();
180- PyObject* schema_capsule = ExportArrowSchemaPyCapsule (arr);
180+ PyObject* schema_capsule = export_arrow_schema_pycapsule (arr);
181181
182- ArrowSchema* schema = GetArrowSchemaPyCapsule (schema_capsule);
182+ ArrowSchema* schema = get_arrow_schema_pycapsule (schema_capsule);
183183 CHECK_NE (schema, nullptr );
184184 CHECK_NE (schema->release , nullptr );
185185
@@ -192,7 +192,7 @@ namespace sparrow::pycapsule
192192 int dummy = 42 ;
193193 PyObject* wrong_capsule = PyCapsule_New (&dummy, " wrong_name" , nullptr );
194194
195- ArrowSchema* schema = GetArrowSchemaPyCapsule (wrong_capsule);
195+ ArrowSchema* schema = get_arrow_schema_pycapsule (wrong_capsule);
196196 CHECK_EQ (schema, nullptr );
197197 CHECK_NE (PyErr_Occurred (), nullptr );
198198 PyErr_Clear ();
@@ -204,7 +204,7 @@ namespace sparrow::pycapsule
204204 {
205205 PyObject* not_capsule = PyLong_FromLong (42 );
206206
207- ArrowSchema* schema = GetArrowSchemaPyCapsule (not_capsule);
207+ ArrowSchema* schema = get_arrow_schema_pycapsule (not_capsule);
208208 CHECK_EQ (schema, nullptr );
209209 CHECK_NE (PyErr_Occurred (), nullptr );
210210 PyErr_Clear ();
@@ -220,9 +220,9 @@ namespace sparrow::pycapsule
220220 SUBCASE (" returns_valid_array_pointer" )
221221 {
222222 auto arr = make_test_array ();
223- PyObject* array_capsule = ExportArrowArrayPyCapsule (arr);
223+ PyObject* array_capsule = export_arrow_array_pycapsule (arr);
224224
225- ArrowArray* array = GetArrowArrayPyCapsule (array_capsule);
225+ ArrowArray* array = get_arrow_array_pycapsule (array_capsule);
226226 CHECK_NE (array, nullptr );
227227 CHECK_NE (array->release , nullptr );
228228
@@ -235,7 +235,7 @@ namespace sparrow::pycapsule
235235 int dummy = 42 ;
236236 PyObject* wrong_capsule = PyCapsule_New (&dummy, " wrong_name" , nullptr );
237237
238- ArrowArray* array = GetArrowArrayPyCapsule (wrong_capsule);
238+ ArrowArray* array = get_arrow_array_pycapsule (wrong_capsule);
239239 CHECK_EQ (array, nullptr );
240240 CHECK_NE (PyErr_Occurred (), nullptr );
241241 PyErr_Clear ();
@@ -247,7 +247,7 @@ namespace sparrow::pycapsule
247247 {
248248 PyObject* not_capsule = PyLong_FromLong (42 );
249249
250- ArrowArray* array = GetArrowArrayPyCapsule (not_capsule);
250+ ArrowArray* array = get_arrow_array_pycapsule (not_capsule);
251251 CHECK_EQ (array, nullptr );
252252 CHECK_NE (PyErr_Occurred (), nullptr );
253253 PyErr_Clear ();
@@ -283,8 +283,8 @@ namespace sparrow::pycapsule
283283 auto arr = make_test_array ();
284284 auto [schema_capsule, array_capsule] = export_array_to_capsules (arr);
285285
286- ArrowSchema* schema = GetArrowSchemaPyCapsule (schema_capsule);
287- ArrowArray* array = GetArrowArrayPyCapsule (array_capsule);
286+ ArrowSchema* schema = get_arrow_schema_pycapsule (schema_capsule);
287+ ArrowArray* array = get_arrow_array_pycapsule (array_capsule);
288288
289289 REQUIRE_NE (schema, nullptr );
290290 REQUIRE_NE (array, nullptr );
@@ -408,7 +408,7 @@ namespace sparrow::pycapsule
408408 ArrowSchema* schema = new ArrowSchema ();
409409 schema->release = nullptr ;
410410
411- PyObject* capsule = PyCapsule_New (schema, " arrow_schema" , ReleaseArrowSchemaPyCapsule );
411+ PyObject* capsule = PyCapsule_New (schema, " arrow_schema" , release_arrow_schema_pycapsule );
412412
413413 // This should not crash
414414 Py_DECREF (capsule);
@@ -425,7 +425,7 @@ namespace sparrow::pycapsule
425425 ArrowArray* array = new ArrowArray ();
426426 array->release = nullptr ;
427427
428- PyObject* capsule = PyCapsule_New (array, " arrow_array" , ReleaseArrowArrayPyCapsule );
428+ PyObject* capsule = PyCapsule_New (array, " arrow_array" , release_arrow_array_pycapsule );
429429
430430 // This should not crash
431431 Py_DECREF (capsule);
@@ -440,8 +440,8 @@ namespace sparrow::pycapsule
440440 {
441441 // Create capsules but never consume them
442442 auto arr = make_test_array ();
443- PyObject* schema_capsule = ExportArrowSchemaPyCapsule (arr);
444- PyObject* array_capsule = ExportArrowArrayPyCapsule (arr);
443+ PyObject* schema_capsule = export_arrow_schema_pycapsule (arr);
444+ PyObject* array_capsule = export_arrow_array_pycapsule (arr);
445445
446446 // Just decref without consuming - destructors should clean up
447447 Py_DECREF (schema_capsule);
0 commit comments