This tests inserts the rows [0->5] to list. It validates that they are all there.
| 99 | |
| 100 | // This tests inserts the rows [0->5] to list. It validates that they are all there. |
| 101 | TEST_F(RowBatchListTest, BasicTest) { |
| 102 | RowBatchList row_list; |
| 103 | RowBatch* batch = CreateRowBatch(0, 5); |
| 104 | row_list.AddRowBatch(batch); |
| 105 | EXPECT_EQ(row_list.total_num_rows(), 6); |
| 106 | |
| 107 | // Do a full table scan and validate returned pointers |
| 108 | FullScan(&row_list, 0, 5); |
| 109 | } |
| 110 | |
| 111 | // This tests an empty batch is handled correctly. |
| 112 | TEST_F(RowBatchListTest, EmptyBatchTest) { |
nothing calls this directly
no test coverage detected