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

Method LoadExpected

cpp/src/arrow/ipc/read_write_test.cc:3221–3228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected