| 3219 | } |
| 3220 | |
| 3221 | std::vector<std::shared_ptr<RecordBatch>> LoadExpected() { |
| 3222 | auto buffer_reader = std::make_shared<io::BufferReader>(file_buffer_); |
| 3223 | auto read_options = IpcReadOptions::Defaults(); |
| 3224 | EXPECT_OK_AND_ASSIGN(auto reader, |
| 3225 | RecordBatchFileReader::Open(buffer_reader.get(), read_options)); |
| 3226 | EXPECT_OK_AND_ASSIGN(auto expected_batches, reader->ToRecordBatches()); |
| 3227 | return expected_batches; |
| 3228 | } |
| 3229 | |
| 3230 | void CheckFileRead(int num_indices_pre_buffered) { |
| 3231 | auto expected_batches = LoadExpected(); |
nothing calls this directly
no test coverage detected