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

Method initTestCase

kdevplatform/language/codegen/tests/test_templatesmodel.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace KDevelop;
17
18void TestTemplatesModel::initTestCase()
19{
20 // avoid translated desktop entries, tests use untranslated strings
21 QLocale::setDefault(QLocale::c());
22 AutoTestShell::init();
23 TestCore::initialize(Core::NoUi);
24
25 model = new TemplatesModel(QStringLiteral("kdevcodegentest"), this);
26 model->addDataPath(QStringLiteral(CODEGEN_TESTS_DATA_DIR) + "/");
27 model->refresh();
28}
29
30void TestTemplatesModel::cleanupTestCase()
31{

Callers

nothing calls this directly

Calls 5

cFunction · 0.85
initializeFunction · 0.85
addDataPathMethod · 0.80
initFunction · 0.50
refreshMethod · 0.45

Tested by

no test coverage detected