MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/exec/row-batch-list-test.cc:101–109  ·  view source on GitHub ↗

This tests inserts the rows [0->5] to list. It validates that they are all there.

Source from the content-addressed store, hash-verified

99
100// This tests inserts the rows [0->5] to list. It validates that they are all there.
101TEST_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.
112TEST_F(RowBatchListTest, EmptyBatchTest) {

Callers

nothing calls this directly

Calls 9

AddRowBatchMethod · 0.80
total_num_rowsMethod · 0.80
tuple_data_poolMethod · 0.80
AddMethod · 0.45
AllocateMethod · 0.45
total_allocated_bytesMethod · 0.45
IteratorMethod · 0.45
AtEndMethod · 0.45

Tested by

no test coverage detected