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

Method addTestSuite

kdevplatform/shell/testcontroller.cpp:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void TestController::addTestSuite(ITestSuite* suite)
59{
60 Q_D(TestController);
61
62 if (ITestSuite* existingSuite = findTestSuite(suite->project(), suite->name()))
63 {
64 if (existingSuite == suite) {
65 return;
66 }
67 removeTestSuite(existingSuite);
68 delete existingSuite;
69 }
70 d->suites.append(suite);
71 if(!ICore::self()->shuttingDown())
72 emit testSuiteAdded(suite);
73}
74
75ITestSuite* TestController::findTestSuite(IProject* project, const QString& name) const
76{

Callers 5

addSuiteMethod · 0.45
removeSuiteMethod · 0.45
replaceSuiteMethod · 0.45
findByProjectMethod · 0.45
testResultsMethod · 0.45

Calls 4

shuttingDownMethod · 0.80
projectMethod · 0.45
nameMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected