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

Method testFiles_data

plugins/clang/tests/test_files.cpp:166–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void 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
180void TestFiles::testFiles()
181{

Callers

nothing calls this directly

Calls 4

isCudaAvailableFunction · 0.85
QDirClass · 0.50
QStringClass · 0.50
appendMethod · 0.45

Tested by

no test coverage detected