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

Method testDeleteAll

kdevplatform/util/tests/test_objectlist.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void TestObjectList::testDeleteAll()
48{
49 ObjectList<QObject> list;
50
51 QPointer<QObject> p(new QObject);
52 list.append(p.data());
53 list.deleteAll();
54 QVERIFY(!p);
55}
56
57void TestObjectList::testBehaviorOnDestruction()
58{

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
dataMethod · 0.45
deleteAllMethod · 0.45

Tested by

no test coverage detected