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

Function test_status

python/pyarrow/tests/test_gdb.py:250–266  ·  view source on GitHub ↗
(gdb_arrow)

Source from the content-addressed store, hash-verified

248
249
250def test_status(gdb_arrow):
251 check_stack_repr(gdb_arrow, "ok_status", "arrow::Status::OK()")
252 check_stack_repr(gdb_arrow, "error_status",
253 'arrow::Status::IOError("This is an error")')
254 check_stack_repr(
255 gdb_arrow, "error_detail_status",
256 'arrow::Status::IOError("This is an error", '
257 'detail=[custom-detail-id] "This is a detail")')
258
259 check_stack_repr(gdb_arrow, "ok_result", "arrow::Result<int>(42)")
260 check_stack_repr(
261 gdb_arrow, "error_result",
262 'arrow::Result<int>(arrow::Status::IOError("This is an error"))')
263 check_stack_repr(
264 gdb_arrow, "error_detail_result",
265 'arrow::Result<int>(arrow::Status::IOError("This is an error", '
266 'detail=[custom-detail-id] "This is a detail"))')
267
268
269def test_buffer_stack(gdb_arrow):

Callers

nothing calls this directly

Calls 1

check_stack_reprFunction · 0.85

Tested by

no test coverage detected