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

Method check_reader

python/pyarrow/tests/test_json.py:384–391  ·  view source on GitHub ↗
(self, reader, expected_schema, expected_data)

Source from the content-addressed store, hash-verified

382 return self.open_json(pa.py_buffer(b), **kwargs)
383
384 def check_reader(self, reader, expected_schema, expected_data):
385 assert reader.schema == expected_schema
386 batches = list(reader)
387 assert len(batches) == len(expected_data)
388 for batch, expected_batch in zip(batches, expected_data):
389 batch.validate(full=True)
390 assert batch.schema == expected_schema
391 assert batch.to_pydict() == expected_batch
392
393 def read_bytes(self, b, **kwargs):
394 return self.open_bytes(b, **kwargs).read_all()

Callers 2

test_file_objectMethod · 0.95

Calls 3

listFunction · 0.85
lenFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected