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

Method canRenameActiveSession

kdevplatform/shell/tests/test_sessioncontroller.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void TestSessionController::canRenameActiveSession()
110{
111 const QString sessionName = QStringLiteral("TestSession5");
112 const QString newSessionName = QStringLiteral("TestOtherSession5");
113 KDevelop::Session *s = m_sessionCtrl->createSession( sessionName );
114 QCOMPARE( sessionName, s->name() );
115 m_sessionCtrl->loadSession( sessionName );
116 QSignalSpy spy(s, SIGNAL(sessionUpdated(KDevelop::ISession*)));
117 s->setName( newSessionName );
118 QCOMPARE( newSessionName, s->name() );
119 QCOMPARE( spy.size(), 1 );
120
121 verifySessionDir( s );
122}
123
124void TestSessionController::deleteSession()
125{

Callers

nothing calls this directly

Calls 6

verifySessionDirFunction · 0.85
loadSessionMethod · 0.80
createSessionMethod · 0.45
nameMethod · 0.45
setNameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected