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

Function test_scalars_heap

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

Source from the content-addressed store, hash-verified

727
728
729def test_scalars_heap(gdb_arrow):
730 check_heap_repr(gdb_arrow, "heap_null_scalar", "arrow::NullScalar")
731 check_heap_repr(gdb_arrow, "heap_bool_scalar",
732 "arrow::BooleanScalar of value true")
733 check_heap_repr(
734 gdb_arrow, "heap_decimal128_scalar",
735 "arrow::Decimal128Scalar of value 123.4567 [precision=10, scale=4]")
736 check_heap_repr(
737 gdb_arrow, "heap_decimal256_scalar",
738 ("arrow::Decimal256Scalar of value "
739 "123456789012345678901234567890123456789012.3456 "
740 "[precision=50, scale=4]"))
741
742 check_heap_repr(
743 gdb_arrow, "heap_map_scalar",
744 ('arrow::MapScalar of type arrow::map(arrow::utf8(), arrow::int32(), '
745 'keys_sorted=false), value length 2, offset 0, null count 0'))
746 check_heap_repr(
747 gdb_arrow, "heap_map_scalar_null",
748 ('arrow::MapScalar of type arrow::map(arrow::utf8(), arrow::int32(), '
749 'keys_sorted=false), null value'))
750
751
752def test_array_data(gdb_arrow):

Callers

nothing calls this directly

Calls 1

check_heap_reprFunction · 0.85

Tested by

no test coverage detected