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

Function test_string_builder_append_values

python/pyarrow/tests/test_builder.py:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49
50def test_string_builder_append_values():
51 sbuilder = StringBuilder()
52 sbuilder.append_values([math.nan, None, "text", None, "other text"])
53 assert sbuilder.null_count == 3
54 arr = sbuilder.finish()
55 assert arr.null_count == 3
56 expected = [None, None, "text", None, "other text"]
57 assert arr.to_pylist() == expected
58
59
60def test_string_builder_append_after_finish():

Callers

nothing calls this directly

Calls 3

StringBuilderClass · 0.85
append_valuesMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected