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

Function test_transcoding_no_ops

python/pyarrow/tests/test_io.py:1871–1875  ·  view source on GitHub ↗
(src_encoding, dest_encoding)

Source from the content-addressed store, hash-verified

1869 [('utf-8', 'utf-8'),
1870 ('utf-8', 'UTF8')])
1871def test_transcoding_no_ops(src_encoding, dest_encoding):
1872 # No indirection is wasted when a trivial transcoding is requested
1873 stream = pa.BufferReader(b"abc123")
1874 assert pa.transcoding_input_stream(
1875 stream, src_encoding, dest_encoding) is stream
1876
1877
1878@pytest.mark.parametrize('src_encoding, dest_encoding',

Callers

nothing calls this directly

Calls 1

BufferReaderMethod · 0.80

Tested by

no test coverage detected