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

Function addTests

plugins/projectfilter/tests/test_projectfilter.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40void addTests(const char* tag, const TestProject& project, const TestFilter& filter, const MatchTest* tests,
41 uint numTests)
42{
43 for (uint i = 0; i < numTests; ++i) {
44 const MatchTest& test = tests[i];
45 QTest::addRow("%s:%s", tag, qUtf8Printable(test.path))
46 << filter << Path(project.path(), test.path) << test.isFolder << test.shouldMatch;
47
48 if (test.isFolder) {
49 // also test folder with trailing slash - should not make a difference
50 QTest::addRow("%s:%s/", tag, qUtf8Printable(test.path))
51 << filter << Path(project.path(), test.path) << test.isFolder << test.shouldMatch;
52 }
53 }
54}
55
56template<typename T>
57void addTests(const char* tag, const TestProject& project, const TestFilter& filter, const T& tests)

Callers 1

match_dataMethod · 0.85

Calls 3

PathClass · 0.50
sizeFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected