| 459 | } |
| 460 | |
| 461 | void TestProjectModel::testItemsForPath() |
| 462 | { |
| 463 | QFETCH(Path, path); |
| 464 | QFETCH(ProjectBaseItem*, root); |
| 465 | QFETCH(int, matches); |
| 466 | |
| 467 | model->appendRow(root); |
| 468 | |
| 469 | const auto items = model->itemsForPath(IndexedString(path.pathOrUrl())); |
| 470 | QCOMPARE(items.size(), matches); |
| 471 | for (ProjectBaseItem* item : items) { |
| 472 | QVERIFY(item->path() == path); |
| 473 | } |
| 474 | |
| 475 | model->clear(); |
| 476 | } |
| 477 | |
| 478 | void TestProjectModel::testItemsForPath_data() |
| 479 | { |
nothing calls this directly
no test coverage detected