| 38 | }; |
| 39 | |
| 40 | void 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 | |
| 56 | template<typename T> |
| 57 | void addTests(const char* tag, const TestProject& project, const TestFilter& filter, const T& tests) |
no test coverage detected