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

Method initTestCase

plugins/clang/tests/test_files.cpp:138–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136} // unnamed namespace
137
138void TestFiles::initTestCase()
139{
140 qputenv("KDEV_CLANG_JSON_TEST_RUN", "1");
141 qputenv("KDEV_CLANG_EXTRA_ARGUMENTS", "-Wno-unused-variable -Wno-unused-parameter -Wno-unused-comparison -Wno-unused-value -Wno-unused-private-field -Wno-ignored-attributes");
142
143 QLoggingCategory::setFilterRules(QStringLiteral("*.debug=false\ndefault.debug=true\nkdevelop.plugins.clang.debug=true\n"));
144 QVERIFY(qputenv("KDEV_CLANG_DISPLAY_DIAGS", "1"));
145 AutoTestShell::init({"kdevclangsupport"});
146 TestCore::initialize(Core::NoUi);
147 DUChain::self()->disablePersistentStorage();
148 Core::self()->languageController()->backgroundParser()->setDelay(0);
149 CodeRepresentation::setDiskChangesForbidden(true);
150
151 m_provider = new TestEnvironmentProvider;
152 IDefinesAndIncludesManager::manager()->registerBackgroundProvider(m_provider);
153}
154
155void TestFiles::cleanupTestCase()
156{

Callers

nothing calls this directly

Calls 8

initializeFunction · 0.85
managerFunction · 0.85
setDelayMethod · 0.80
backgroundParserMethod · 0.80
languageControllerMethod · 0.80
initClass · 0.50

Tested by

no test coverage detected