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

Method remove

kdevplatform/serialization/tests/bench_itemrepository.cpp:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void BenchItemRepository::remove()
139{
140 QMutex mutex;
141 TestDataRepository repo("TestDataRepositoryRemove", &mutex);
142 const QVector<QString> data = generateData();
143 const QVector<uint> indices = insertData(data, repo);
144 repo.store();
145 QVERIFY(indices.size() == QSet<uint>(indices.begin(), indices.end()).size());
146 QVERIFY(indices.size() == data.size());
147 QBENCHMARK_ONCE {
148 for (uint index : indices) {
149 repo.deleteItem(index);
150 }
151
152 repo.store();
153 }

Callers 3

updateFreeSpaceOrderMethod · 0.45
convertMonsterBucketMethod · 0.45
TestItemRepositoryClass · 0.45

Calls 7

generateDataFunction · 0.70
insertDataFunction · 0.70
storeMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
deleteItemMethod · 0.45

Tested by

no test coverage detected