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

Method openProject

kdevplatform/shell/tests/test_projectcontroller.cpp:203–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201} void(0)
202
203void TestProjectController::openProject()
204{
205 auto spy = createOpenedSpy();
206 QVERIFY(!m_projCtrl->isProjectNameUsed(m_projName));
207 m_projCtrl->openProject(m_projFilePath.toUrl());
208 WAIT_FOR_OPEN_SIGNAL;
209 QCOMPARE(m_projCtrl->projectCount(), 1);
210 auto* proj = assertProjectOpened(m_projName);
211 assertSpyCaughtProject(spy.get(), proj);
212 QCOMPARE(proj->projectFile(), m_projFilePath);
213 QCOMPARE(proj->path(), Path(m_scratchDir.absolutePath()+'/'));
214 QVERIFY(m_projCtrl->isProjectNameUsed(m_projName));
215}
216
217void TestProjectController::closeProject()
218{

Callers 10

closeProjectMethod · 0.45
openCloseOpenMethod · 0.45
reopenMethod · 0.45
reopenWhileLoadingMethod · 0.45
openMultipleMethod · 0.45
emptyProjectMethod · 0.45
singleFileMethod · 0.45
singleDirectoryMethod · 0.45
fileInSubdirectoryMethod · 0.45
prettyFileNameMethod · 0.45

Calls 7

isProjectNameUsedMethod · 0.80
projectCountMethod · 0.80
PathClass · 0.50
toUrlMethod · 0.45
getMethod · 0.45
projectFileMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected