| 66 | static auto index_map = MakeIndexMap(); |
| 67 | |
| 68 | static auto NextRow(ExecutorContext& ctx) { |
| 69 | auto n = ctx.Next(); |
| 70 | EXPECT_EQ(n.Msg(), Status::ok_msg); |
| 71 | auto v = std::move(n).GetValue(); |
| 72 | EXPECT_EQ(v.index(), 1); |
| 73 | return std::get<ExecutorNode::RowType>(std::move(v)); |
| 74 | } |
| 75 | |
| 76 | TEST(PlanExecutorTest, Mock) { |
| 77 | auto op = std::make_unique<Mock>(std::vector<ExecutorNode::RowType>{}); |