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

Function test_binary_format

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

Source from the content-addressed store, hash-verified

151
152
153def test_binary_format():
154 arr = pa.array([b'\x00', b'', None, b'\x01foo', b'\x80\xff'])
155 result = arr.to_string()
156 expected = """\
157[
158 00,
159 ,
160 null,
161 01666F6F,
162 80FF
163]"""
164 assert result == expected
165
166
167def test_binary_total_values_length():

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected