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

Method temporary

kdevplatform/shell/tests/test_sessioncontroller.cpp:187–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void TestSessionController::temporary()
188{
189 ISession* s = Core::self()->activeSession();
190 s->setTemporary(true);
191 const QString oldName = s->name();
192 const auto dir = s->dataDirectory();
193
194 verifySessionDir(s, true);
195 Core::self()->sessionController()->cleanup();
196 verifySessionDir(dir, oldName, false);
197 Core::self()->sessionController()->initialize(oldName);
198 QCOMPARE(Core::self()->activeSession()->name(), oldName);
199 // dir / UID can be different, hence don't verifySessionDir
200}
201
202void TestSessionController::tryLockSession()
203{

Callers

nothing calls this directly

Calls 8

verifySessionDirFunction · 0.85
setTemporaryMethod · 0.80
dataDirectoryMethod · 0.80
sessionControllerMethod · 0.80
activeSessionMethod · 0.45
nameMethod · 0.45
cleanupMethod · 0.45
initializeMethod · 0.45

Tested by

no test coverage detected