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

Method testAbbreviations

plugins/quickopen/tests/test_quickopen.cpp:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void TestQuickOpen::testAbbreviations()
137{
138 QFETCH(StringList, items);
139 QFETCH(QString, filter);
140 QFETCH(StringList, filtered);
141
142 PathTestFilter filterItems;
143 filterItems.setItems(std::move(items));
144 filterItems.setFilter(filter.split('/', Qt::SkipEmptyParts));
145 QCOMPARE(filterItems.filteredItems(), filtered);
146}
147
148void TestQuickOpen::testAbbreviations_data()
149{

Callers

nothing calls this directly

Calls 3

setItemsMethod · 0.45
setFilterMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected