| 447 | } |
| 448 | |
| 449 | void TestProjectModel::testWithProject() |
| 450 | { |
| 451 | QString projectFolderPath = QDir::rootPath() + QStringLiteral("dummyprojectfolder"); |
| 452 | QScopedPointer<TestProject> proj(new TestProject()); |
| 453 | auto* rootItem = new ProjectFolderItem( proj.data(), Path(QUrl::fromLocalFile(projectFolderPath)), nullptr); |
| 454 | proj->setProjectItem( rootItem ); |
| 455 | ProjectBaseItem* item = model->itemFromIndex( model->index( 0, 0 ) ); |
| 456 | QCOMPARE( item, rootItem ); |
| 457 | QCOMPARE( item->text(), proj->name() ); |
| 458 | QCOMPARE( item->path(), proj->path() ); |
| 459 | } |
| 460 | |
| 461 | void TestProjectModel::testItemsForPath() |
| 462 | { |
nothing calls this directly
no test coverage detected