| 164 | } |
| 165 | |
| 166 | void TestFiles::testFiles_data() |
| 167 | { |
| 168 | QTest::addColumn<QString>("fileName"); |
| 169 | const QString testDirPath = TEST_FILES_DIR; |
| 170 | auto patterns = QStringList{"*.h", "*.cpp", "*.c", "*.cl"}; |
| 171 | if (isCudaAvailable()) { |
| 172 | patterns.append("*.cu"); |
| 173 | } |
| 174 | const QStringList files = QDir(testDirPath).entryList(patterns, QDir::Files); |
| 175 | for (const QString& file : files) { |
| 176 | QTest::newRow(file.toUtf8().constData()) << QString(testDirPath + '/' + file); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void TestFiles::testFiles() |
| 181 | { |
nothing calls this directly
no test coverage detected