command
| 371 | |
| 372 | // command |
| 373 | void TestProjectController::singleFile() |
| 374 | { |
| 375 | // verify that the project model contains a single file in the |
| 376 | // top folder. First setup a FakeFileManager with this file |
| 377 | |
| 378 | m_projCtrl->openProject(m_projFilePath.toUrl()); |
| 379 | WAIT_FOR_OPEN_SIGNAL; |
| 380 | auto* proj = assertProjectOpened(m_projName); |
| 381 | |
| 382 | FakeFileManager* fileMng = createFileManager(); |
| 383 | proj->setManagerPlugin(fileMng); |
| 384 | |
| 385 | Path filePath = Path(m_projFolder, QStringLiteral("foobar")); |
| 386 | fileMng->addFileToFolder(m_projFolder, filePath); |
| 387 | |
| 388 | proj->reloadModel(); |
| 389 | QTest::qWait(100); // NO signals for reload ... |
| 390 | |
| 391 | ProjectFolderItem* rootFolder; |
| 392 | ASSERT_SINGLE_PROJECT_IN_MODEL(rootFolder); |
| 393 | ProjectFileItem* fi; |
| 394 | ASSERT_SINGLE_FILE_IN(rootFolder, "foobar", filePath, fi); |
| 395 | QCOMPARE(fi->rowCount(), 0); |
| 396 | |
| 397 | ASSERT_SINGLE_PROJECT_IN_MODEL(rootFolder); |
| 398 | ASSERT_SINGLE_FILE_IN(rootFolder, "foobar", filePath, fi); |
| 399 | } |
| 400 | |
| 401 | // command |
| 402 | void TestProjectController::singleDirectory() |
nothing calls this directly
no test coverage detected