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

Method cleanupTestCase

kdevplatform/shell/tests/test_sessioncontroller.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void TestSessionController::cleanupTestCase()
65{
66 const auto sessions = m_sessionCtrl->sessions();
67 for (const Session* session : sessions) {
68 TryLockSessionResult lock = m_sessionCtrl->tryLockSession(session->id().toString());
69 if (lock.lock)
70 m_sessionCtrl->deleteSession( lock.lock );
71 }
72
73 TestCore::shutdown();
74}
75
76void TestSessionController::createSession_data()
77{

Callers

nothing calls this directly

Calls 5

sessionsMethod · 0.80
tryLockSessionMethod · 0.45
toStringMethod · 0.45
idMethod · 0.45
deleteSessionMethod · 0.45

Tested by

no test coverage detected