MCPcopy Create free account
hub / github.com/KDE/kdevelop / collectNaiveNodeCount

Function collectNaiveNodeCount

kdevplatform/language/duchain/tests/test_duchain.cpp:590–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590uint 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
602void TestDUChain::testImportStructure()
603{

Callers 1

testImportCacheMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected