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

Method initTestCase

plugins/standardoutputview/tests/test_standardoutputview.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41QTEST_MAIN(StandardOutputViewTest)
42
43void StandardOutputViewTest::initTestCase()
44{
45 KDevelop::AutoTestShell::init({QStringLiteral("KDevStandardOutputView")});
46 m_testCore = new KDevelop::TestCore();
47 m_testCore->initialize(KDevelop::Core::Default);
48
49 m_controller = m_testCore->uiControllerInternal();
50
51 m_stdOutputView = nullptr;
52 KDevelop::IPluginController* plugin_controller = m_testCore->pluginController();
53
54 // make sure KDevStandardOutputView is loaded
55 KDevelop::IPlugin* plugin = plugin_controller->loadPlugin(QStringLiteral("KDevStandardOutputView"));
56 QVERIFY(plugin);
57 m_stdOutputView = dynamic_cast<KDevelop::IOutputView*>(plugin);
58 QVERIFY(m_stdOutputView);
59}
60
61void StandardOutputViewTest::cleanupTestCase()
62{

Callers

nothing calls this directly

Calls 5

uiControllerInternalMethod · 0.80
pluginControllerMethod · 0.80
initClass · 0.50
initializeMethod · 0.45
loadPluginMethod · 0.45

Tested by

no test coverage detected