()
| 203 | |
| 204 | |
| 205 | def test_file_count_rows_no_batches(): |
| 206 | schema = pa.schema([('a', pa.int64())]) |
| 207 | sink = pa.BufferOutputStream() |
| 208 | with pa.ipc.new_file(sink, schema): |
| 209 | pass |
| 210 | |
| 211 | reader = pa.ipc.open_file(sink.getvalue()) |
| 212 | assert reader.num_record_batches == 0 |
| 213 | assert reader.count_rows() == 0 |
| 214 | |
| 215 | |
| 216 | def test_open_file_from_buffer(file_fixture): |
nothing calls this directly
no test coverage detected