| 279 | } |
| 280 | |
| 281 | void TestQMakeFile::replaceFunctions() |
| 282 | { |
| 283 | QFETCH(QString, fileContents); |
| 284 | QFETCH(QMakeFile::VariableMap, definedVariables); |
| 285 | QFETCH(QStringList, undefinedVariables); |
| 286 | |
| 287 | QTemporaryFile tmpFile; |
| 288 | tmpFile.open(); |
| 289 | tmpFile.write(fileContents.toUtf8()); |
| 290 | tmpFile.close(); |
| 291 | |
| 292 | QMakeProjectFile file(tmpFile.fileName()); |
| 293 | |
| 294 | setDefaultMKSpec(file); |
| 295 | |
| 296 | QVERIFY(file.read()); |
| 297 | |
| 298 | QMakeFile::VariableMap::const_iterator it = definedVariables.constBegin(); |
| 299 | while (it != definedVariables.constEnd()) { |
| 300 | QCOMPARE(file.variableValues(it.key()), it.value()); |
| 301 | ++it; |
| 302 | } |
| 303 | for (const auto& var : std::as_const(undefinedVariables)) { |
| 304 | QVERIFY(!file.containsVariable(var)); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | void TestQMakeFile::qtIncludeDirs_data() |
| 309 | { |
nothing calls this directly
no test coverage detected