| 469 | } |
| 470 | |
| 471 | void TestProjectController::prettyFileName() |
| 472 | { |
| 473 | QFETCH(QString, relativeFilePath); |
| 474 | |
| 475 | m_projCtrl->openProject(m_projFilePath.toUrl()); |
| 476 | WAIT_FOR_OPEN_SIGNAL; |
| 477 | auto* proj = assertProjectOpened(m_projName); |
| 478 | |
| 479 | FakeFileManager* fileMng = createFileManager(); |
| 480 | proj->setManagerPlugin(fileMng); |
| 481 | |
| 482 | Path filePath = Path(m_projFolder, relativeFilePath); |
| 483 | fileMng->addFileToFolder(m_projFolder, filePath); |
| 484 | |
| 485 | QCOMPARE(m_projCtrl->prettyFileName(filePath.toUrl(), ProjectController::FormattingOptions::FormatPlain), QString(m_projName + ':' + relativeFilePath)); |
| 486 | } |
| 487 | |
| 488 | void TestProjectController::changesModel() |
| 489 | { |
no test coverage detected