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

Function test_binary_total_values_length

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

Source from the content-addressed store, hash-verified

165
166
167def test_binary_total_values_length():
168 arr = pa.array([b'0000', None, b'11111', b'222222', b'3333333'],
169 type='binary')
170 large_arr = pa.array([b'0000', None, b'11111', b'222222', b'3333333'],
171 type='large_binary')
172
173 assert arr.total_values_length == 22
174 assert arr.slice(1, 3).total_values_length == 11
175 assert large_arr.total_values_length == 22
176 assert large_arr.slice(1, 3).total_values_length == 11
177
178
179@pytest.mark.numpy

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected