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

Function check_heap_repr

python/pyarrow/tests/test_gdb.py:240–247  ·  view source on GitHub ↗

Check printing a heap-located value, given its address.

(gdb, expr, expected)

Source from the content-addressed store, hash-verified

238
239
240def check_heap_repr(gdb, expr, expected):
241 """
242 Check printing a heap-located value, given its address.
243 """
244 s = gdb.print_value(f"*{expr}")
245 # GDB may prefix the value with an address or type specification
246 if s != expected:
247 assert s.endswith(f" {expected}")
248
249
250def test_status(gdb_arrow):

Callers 9

test_buffer_heapFunction · 0.85
test_metadataFunction · 0.85
test_types_heapFunction · 0.85
test_fields_heapFunction · 0.85
test_scalars_heapFunction · 0.85
test_arrays_heapFunction · 0.85
test_schemaFunction · 0.85
test_record_batchFunction · 0.85
test_tableFunction · 0.85

Calls 1

print_valueMethod · 0.80

Tested by

no test coverage detected