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

Method loadPluginCustomDefaults

kdevplatform/shell/tests/test_pluginenabling.cpp:76–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void TestPluginEnabling::loadPluginCustomDefaults()
77{
78 QFETCH(QString, pluginId);
79 QFETCH(bool, shouldBeEnabled);
80
81 AutoTestShell::init({
82 // set those as default which would not be by own metadata
83 // and do not set those which otherwise would, so both
84 QStringLiteral("test_globalnondefault"),
85 QStringLiteral("test_projectnondefault")
86 });
87 // TODO: somehow currently the clean-up of the previous session is not yet done
88 // on the next data item test run, so the session with the name is still locked
89 // so we work-around that for now by using a custom session name per session
90 // TODO: consider adding a new bool temporarySession = true to TestCore::initialize()
91 TestCore::initialize(Core::NoUi, QStringLiteral("test_pluginenabling_custom_")+pluginId);
92 TestCore::self()->activeSession()->setTemporary(true);
93 m_pluginCtrl = Core::self()->pluginControllerInternal();
94
95 loadPlugin(pluginId, shouldBeEnabled);
96
97 TestCore::shutdown();
98}
99
100void TestPluginEnabling::loadPluginNormalDefaults_data()
101{

Callers

nothing calls this directly

Calls 5

initializeFunction · 0.85
setTemporaryMethod · 0.80
initFunction · 0.50
activeSessionMethod · 0.45

Tested by

no test coverage detected