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

Method checkNodeLabels

kdevplatform/shell/tests/test_filteredproblemstore.cpp:575–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575bool TestFilteredProblemStore::checkNodeLabels()
576{
577 const ProblemStoreNode *errorNode = m_store->findNode(0);
578 const ProblemStoreNode *warningNode = m_store->findNode(1);
579 const ProblemStoreNode *hintNode = m_store->findNode(2);
580
581 MYCOMPARE(checkNodeLabel(errorNode, i18n("Error")), true);
582 MYCOMPARE(checkNodeLabel(warningNode, i18n("Warning")), true);
583 MYCOMPARE(checkNodeLabel(hintNode, i18n("Hint")), true);
584
585 return true;
586}
587
588// Generate 3 problems, all with different paths, different severity
589// Also generates a problem with diagnostics

Callers

nothing calls this directly

Calls 2

checkNodeLabelFunction · 0.85
findNodeMethod · 0.45

Tested by

no test coverage detected