| 1031 | } |
| 1032 | |
| 1033 | void SimpleTupleStreamTest::VerifyReadWriteBatch( |
| 1034 | RowBatch* in_batch, RowBatch* out_batch, int64_t start_index) { |
| 1035 | int slot_offset = int_desc_->tuple_descriptors()[0]->slots()[0]->tuple_offset(); |
| 1036 | int64_t row_index = start_index; |
| 1037 | for (int i = 0; i < out_batch->num_rows(); ++i) { |
| 1038 | TupleRow* in_row = in_batch->GetRow(row_index++ % in_batch->num_rows()); |
| 1039 | EXPECT_EQ(*in_row->GetTuple(0)->GetIntSlot(slot_offset), |
| 1040 | *out_batch->GetRow(i)->GetTuple(0)->GetIntSlot(slot_offset)); |
| 1041 | } |
| 1042 | } |
| 1043 | |
| 1044 | TEST_F(SimpleTupleStreamTest, TestFlushResourcesReadWritePinnedAttach) { |
| 1045 | TestFlushResourcesReadWrite(true, true); |
nothing calls this directly
no test coverage detected