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

Method findByProject

kdevplatform/shell/tests/test_testcontroller.cpp:159–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void TestTestController::findByProject()
160{
161 IProject* otherProject = new TestProject(Path(), this);
162
163 ITestSuite* suiteOne = new FakeTestSuite(TestSuiteName, m_project);
164 ITestSuite* suiteTwo = new FakeTestSuite(TestSuiteName, otherProject);
165 m_testController->addTestSuite(suiteOne);
166 m_testController->addTestSuite(suiteTwo);
167
168 QCOMPARE(m_testController->testSuites().size(), 2);
169 QCOMPARE(m_testController->testSuitesForProject(m_project).size(), 1);
170
171 QCOMPARE(m_testController->testSuitesForProject(m_project).at(0), suiteOne);
172
173 m_testController->removeTestSuite(suiteOne);
174 m_testController->removeTestSuite(suiteTwo);
175 delete suiteOne;
176 delete suiteTwo;
177
178 delete otherProject;
179}
180
181void TestTestController::testResults()
182{

Callers

nothing calls this directly

Calls 7

testSuitesForProjectMethod · 0.80
PathClass · 0.50
addTestSuiteMethod · 0.45
sizeMethod · 0.45
testSuitesMethod · 0.45
atMethod · 0.45
removeTestSuiteMethod · 0.45

Tested by

no test coverage detected