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

Function test_empty_iterable

python/pyarrow/tests/test_convert_builtin.py:79–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78
79def test_empty_iterable():
80 arr = pa.array(StrangeIterable([]))
81 assert len(arr) == 0
82 assert arr.null_count == 0
83 assert arr.type == pa.null()
84 assert arr.to_pylist() == []
85
86
87def test_limited_iterator_types():

Callers

nothing calls this directly

Calls 3

StrangeIterableClass · 0.85
lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected