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

Function test_array_slice_uint64_scalar_overflow

python/pyarrow/tests/test_array.py:615–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

613
614
615def test_array_slice_uint64_scalar_overflow():
616 arr = pa.array(range(10))
617 overflow = pa.scalar(2 ** 63, type=pa.uint64())
618
619 assert arr.slice(overflow).equals(arr.slice(len(arr)))
620 with pytest.raises(OverflowError):
621 arr.slice(0, overflow)
622
623
624def test_array_slice_negative_step():

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
equalsMethod · 0.80
arrayMethod · 0.45
scalarMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected