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

Method initTestCase

plugins/subversion/tests/test_svnimport.cpp:60–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void TestSvnImport::initTestCase()
61{
62 QLoggingCategory::setFilterRules(QStringLiteral("*.debug=false\ndefault.debug=true\nkdevelop.plugins.svn.debug=true\n"));
63 AutoTestShell::init({QStringLiteral("kdevsubversion"), QStringLiteral("KDevStandardOutputView")});
64 TestCore::initialize();
65
66 const QList<IPlugin*> plugins = Core::self()->pluginController()->allPluginsForExtension(QStringLiteral("org.kdevelop.IBasicVersionControl"));
67 for (IPlugin* p : plugins) {
68 qDebug() << "checking plugin" << p;
69 auto* icentr = p->extension<ICentralizedVersionControl>();
70 if (!icentr)
71 continue;
72 if (icentr->name() == QLatin1String("Subversion")) {
73 vcs = icentr;
74 break;
75 }
76 }
77 qDebug() << "ok, got vcs" << vcs;
78 QVERIFY(vcs);
79}
80
81void TestSvnImport::cleanupTestCase()
82{

Callers

nothing calls this directly

Calls 5

initializeFunction · 0.85
pluginControllerMethod · 0.80
initClass · 0.50
nameMethod · 0.45

Tested by

no test coverage detected