MCPcopy Create free account
hub / github.com/KDE/kdevelop / testItemsForPath

Method testItemsForPath

kdevplatform/project/tests/test_projectmodel.cpp:461–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void 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
478void TestProjectModel::testItemsForPath_data()
479{

Callers

nothing calls this directly

Calls 7

appendRowMethod · 0.80
pathOrUrlMethod · 0.80
IndexedStringClass · 0.50
itemsForPathMethod · 0.45
sizeMethod · 0.45
pathMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected