| 136 | } |
| 137 | |
| 138 | void 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 | } |
no test coverage detected