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

Method initTestCase

plugins/lldb/unittests/test_lldbformatters.cpp:102–117  ·  view source on GitHub ↗

Called before the first testfunction is executed

Source from the content-addressed store, hash-verified

100
101// Called before the first testfunction is executed
102void LldbFormattersTest::initTestCase()
103{
104 AutoTestShell::init({QStringLiteral("kdevlldb"), QStringLiteral("kdevexecute")});
105 AutoTestShell::initializeNotifications();
106 m_core = TestCore::initialize(Core::NoUi);
107
108 m_iface = m_core->pluginController()
109 ->pluginForExtension(QStringLiteral("org.kdevelop.IExecutePlugin"), QStringLiteral("kdevexecute"))
110 ->extension<IExecutePlugin>();
111 Q_ASSERT(m_iface);
112
113 const QString lldbMiExecutable = QStandardPaths::findExecutable(QStringLiteral("lldb-mi"));
114 if (lldbMiExecutable.isEmpty()) {
115 QSKIP("Skipping, lldb-mi not available");
116 }
117}
118
119// Called after the last testfunction was executed
120void LldbFormattersTest::cleanupTestCase()

Callers

nothing calls this directly

Calls 6

initializeFunction · 0.85
pluginControllerMethod · 0.80
initClass · 0.50
findExecutableFunction · 0.50
pluginForExtensionMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected