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

Function test_jvm_array_empty

python/pyarrow/tests/test_jvm.py:243–249  ·  view source on GitHub ↗
(root_allocator)

Source from the content-addressed store, hash-verified

241
242
243def test_jvm_array_empty(root_allocator):
244 cls = f"org.apache.arrow.vector.{'IntVector'}"
245 jvm_vector = jpype.JClass(cls)("vector", root_allocator)
246 jvm_vector.allocateNew()
247 jvm_array = pa_jvm.array(jvm_vector)
248 assert len(jvm_array) == 0
249 assert jvm_array.type == pa.int32()
250
251
252# These test parameters mostly use an integer range as an input as this is

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected