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

Method testSetEnabledChecks

plugins/clangtidy/tests/test_checkgroup.cpp:205–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void TestCheckGroup::testSetEnabledChecks()
206{
207 QFETCH(QStringList, input);
208 QFETCH(QStringList, result);
209 QFETCH(CheckStateGroupData, group);
210
211 ClangTidy::CheckGroup* checkGroup = ClangTidy::CheckGroup::fromPlainList({
212 "foo-one-two",
213 "foo-one-three",
214 "foo-a.two",
215 "foo-a.three",
216 "foo-b",
217 "bar-no-way",
218 "bar-no-sense"});
219
220 checkGroup->setEnabledChecks(input);
221
222 QCOMPARE(checkGroup->enabledChecksRules(), result);
223
224 doTestResult(checkGroup, group);
225
226 delete checkGroup;
227}
228
229
230QTEST_GUILESS_MAIN(TestCheckGroup)

Callers

nothing calls this directly

Calls 2

enabledChecksRulesMethod · 0.80
setEnabledChecksMethod · 0.45

Tested by

no test coverage detected