| 37 | return getOpWithType(op->getChild(0).get(), type); |
| 38 | } |
| 39 | uint64_t countOpsWithType(planner::LogicalOperator* op, planner::LogicalOperatorType type) { |
| 40 | auto result = op->getOperatorType() == type ? 1u : 0u; |
| 41 | for (auto i = 0u; i < op->getNumChildren(); ++i) { |
| 42 | result += countOpsWithType(op->getChild(i).get(), type); |
| 43 | } |
| 44 | return result; |
| 45 | } |
| 46 | }; |
| 47 | |
| 48 | TEST_F(CardinalityTest, TestOperators) { |
nothing calls this directly
no test coverage detected