MCPcopy Create free account
hub / github.com/apache/kvrocks / NextRow

Function NextRow

tests/cppunit/plan_executor_test.cc:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66static auto index_map = MakeIndexMap();
67
68static 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
76TEST(PlanExecutorTest, Mock) {
77 auto op = std::make_unique<Mock>(std::vector<ExecutorNode::RowType>{});

Callers 2

TESTFunction · 0.85
TEST_FFunction · 0.85

Calls 3

GetValueMethod · 0.80
NextMethod · 0.45
MsgMethod · 0.45

Tested by

no test coverage detected