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

Method initTestCase

plugins/git/tests/test_git.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86} // unnamed namespace
87
88void GitInitTest::initTestCase()
89{
90 AutoTestShell::init({{}}); // load no plugins at all
91 TestCore::initialize(Core::NoUi);
92
93 const auto pluginMetaData = makeTestPluginMetaData("TestGit");
94 m_plugin = new GitPlugin(TestCore::self(), pluginMetaData);
95
96 removeTempDirs(); // in case the previous test run crashed and left a git repository behind
97
98 const auto gitExecutable = QStandardPaths::findExecutable(QStringLiteral("git"));
99 if (gitExecutable.isEmpty()) {
100 QSKIP("Skipping because `git` executable is not available");
101 }
102}
103
104void GitInitTest::cleanupTestCase()
105{

Callers

nothing calls this directly

Calls 5

initializeFunction · 0.85
makeTestPluginMetaDataFunction · 0.85
initClass · 0.50
findExecutableFunction · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected