MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getSource

Method getSource

test/planner/cardinality_test.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 return TestRunner::getLogicalPlan(query, *conn);
21 }
22 std::pair<planner::LogicalOperator*, planner::LogicalOperator*> getSource(
23 planner::LogicalOperator* op, planner::LogicalOperator* parent = nullptr) {
24 if (op->getNumChildren() == 0) {
25 return {parent, op};
26 }
27 return getSource(op->getChild(0).get(), op);
28 }
29 planner::LogicalOperator* getOpWithType(planner::LogicalOperator* op,
30 planner::LogicalOperatorType type) {
31 if (op->getOperatorType() == type) {

Callers

nothing calls this directly

Calls 3

getNumChildrenMethod · 0.80
getMethod · 0.45
getChildMethod · 0.45

Tested by

no test coverage detected