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

Method initializeNonStatic

kdevplatform/tests/testcore.cpp:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void TestCore::initializeNonStatic(Core::Setup mode, const QString& _session)
62{
63 QString session = _session;
64 if (_session.isEmpty()) {
65 // use a distinct session name for unit test sessions
66 // they are temporary (see below) but still - we want to make sure
67 session = QLatin1String("test-") + QCoreApplication::applicationName();
68 }
69
70 if (!d->initialize(mode, session)) {
71 qFatal("could not initialize the core");
72 }
73
74 if (_session.isEmpty()) {
75 activeSession()->setTemporary(true);
76 }
77}
78
79void TestCore::shutdown()
80{

Callers 1

initializeMethod · 0.80

Calls 3

setTemporaryMethod · 0.80
isEmptyMethod · 0.45
initializeMethod · 0.45

Tested by

no test coverage detected