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

Method CheckRoundtrip

cpp/src/arrow/ipc/feather_test.cc:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void CheckRoundtrip(std::shared_ptr<RecordBatch> batch) {
109 std::vector<std::shared_ptr<RecordBatch>> batches = {batch};
110 ASSERT_OK_AND_ASSIGN(auto table, Table::FromRecordBatches(batches));
111
112 DoWrite(*table);
113
114 std::shared_ptr<Table> read_table;
115 ASSERT_OK(reader_->Read(&read_table));
116 ASSERT_OK(read_table->ValidateFull());
117 AssertTablesEqual(*table, *read_table);
118 }
119
120 protected:
121 std::shared_ptr<io::BufferOutputStream> stream_;

Callers

nothing calls this directly

Calls 3

AssertTablesEqualFunction · 0.85
ReadMethod · 0.45
ValidateFullMethod · 0.45

Tested by

no test coverage detected