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

Function check_stack_repr

python/pyarrow/tests/test_gdb.py:229–237  ·  view source on GitHub ↗

Check printing a stack-located value.

(gdb, expr, expected)

Source from the content-addressed store, hash-verified

227
228
229def check_stack_repr(gdb, expr, expected):
230 """
231 Check printing a stack-located value.
232 """
233 s = gdb.print_value(expr)
234 if isinstance(expected, re.Pattern):
235 assert expected.match(s), s
236 else:
237 assert s == expected
238
239
240def check_heap_repr(gdb, expr, expected):

Callers 10

test_statusFunction · 0.85
test_buffer_stackFunction · 0.85
test_decimalsFunction · 0.85
test_types_stackFunction · 0.85
test_fields_stackFunction · 0.85
test_scalars_stackFunction · 0.85
test_array_dataFunction · 0.85
test_arrays_stackFunction · 0.85
test_chunked_arrayFunction · 0.85
test_datumFunction · 0.85

Calls 1

print_valueMethod · 0.80

Tested by

no test coverage detected