Changeset View
Changeset View
Standalone View
Standalone View
tests/test_plugin.cpp
Context not available. | |||||
30 | using namespace KDevelop; | 30 | using namespace KDevelop; | ||
---|---|---|---|---|---|
31 | // using namespace ClangTidy; | 31 | // using namespace ClangTidy; | ||
32 | 32 | | |||
33 | void TestClangtidyPlugin::initTestCase() | 33 | void TestClangTidyPlugin::initTestCase() | ||
34 | { | 34 | { | ||
35 | AutoTestShell::init(); | 35 | AutoTestShell::init(); | ||
36 | TestCore::initialize(Core::NoUi); | 36 | TestCore::initialize(Core::NoUi); | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | void TestClangtidyPlugin::cleanupTestCase() | 39 | void TestClangTidyPlugin::cleanupTestCase() | ||
40 | { | 40 | { | ||
41 | TestCore::shutdown(); | 41 | TestCore::shutdown(); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | void TestClangtidyPlugin::testPlugin() | 44 | void TestClangTidyPlugin::testPlugin() | ||
45 | { | 45 | { | ||
46 | ClangTidy::Plugin plugin(nullptr); | 46 | ClangTidy::Plugin plugin(nullptr); | ||
47 | QCOMPARE(plugin.configPages(), 1); | 47 | QCOMPARE(plugin.configPages(), 1); | ||
48 | QVERIFY(!plugin.allAvailableChecks().isEmpty()); | 48 | QVERIFY(!plugin.allAvailableChecks().isEmpty()); | ||
49 | | ||||
50 | // TODO(coliveira): Create more useful tests. | ||||
49 | } | 51 | } | ||
50 | 52 | | |||
51 | QTEST_GUILESS_MAIN(TestClangtidyPlugin); | 53 | QTEST_GUILESS_MAIN(TestClangTidyPlugin); | ||
Context not available. |