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

Method renameSession

kdevplatform/shell/tests/test_sessioncontroller.cpp:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void TestSessionController::renameSession()
95{
96 const QString sessionName = QStringLiteral("TestSession4");
97 const QString newSessionName = QStringLiteral("TestOtherSession4");
98 KDevelop::Session *s = m_sessionCtrl->createSession( sessionName );
99 QCOMPARE( sessionName, s->name() );
100 verifySessionDir( s );
101 QSignalSpy spy(s, SIGNAL(sessionUpdated(KDevelop::ISession*)));
102 s->setName( newSessionName );
103 QCOMPARE( newSessionName, s->name() );
104 QCOMPARE( spy.size(), 1 );
105
106 verifySessionDir( s );
107}
108
109void TestSessionController::canRenameActiveSession()
110{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected