| 588 | } |
| 589 | |
| 590 | uint collectNaiveNodeCount(uint currentNode) |
| 591 | { |
| 592 | if (!currentNode) |
| 593 | return 0; |
| 594 | uint ret = 1; |
| 595 | const Utils::SetNodeData* node = KDevelop::RecursiveImportRepository::repository()->nodeFromIndex(currentNode); |
| 596 | Q_ASSERT(node); |
| 597 | ret += collectNaiveNodeCount(node->leftNode()); |
| 598 | ret += collectNaiveNodeCount(node->rightNode()); |
| 599 | return ret; |
| 600 | } |
| 601 | |
| 602 | void TestDUChain::testImportStructure() |
| 603 | { |