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

Method remove

kdevplatform/util/tests/test_embeddedfreetree.cpp:263–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 }
262
263 void remove(uint i)
264 {
265 if (realSet.find(i) != realSet.end()) {
266 QVERIFY(set.contains(i));
267 } else {
268 QVERIFY(!set.contains(i));
269 return;
270 }
271 clock_t start = clock();
272 set.remove(i);
273 emb_removal += clock() - start;
274
275 start = clock();
276 realSet.erase(i);
277 std_removal += clock() - start;
278
279 QVERIFY(!set.contains(i));
280 }
281
282 uint size() const
283 {

Callers 7

updateReadyMethod · 0.45
randomizedTestMethod · 0.45
sequentialTestMethod · 0.45
testInsertMethod · 0.45
testBasicInterfaceMethod · 0.45
mixedMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected