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

Method testRemoveModel

kdevplatform/shell/tests/test_problemmodelset.cpp:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void TestProblemModelSet::testRemoveModel()
127{
128 QSignalSpy spy(m_set.data(), &ProblemModelSet::removed);
129
130 int c = 0;
131 for (const TestModelData& data : std::as_const(m_testData)) {
132 m_set->removeModel(data.id);
133 c++;
134
135 QCOMPARE(spy.count(), c);
136 QVERIFY(testModelCount >= c);
137 QCOMPARE(m_set->models().count(), testModelCount - c);
138 }
139}
140
141QTEST_MAIN(TestProblemModelSet)
142

Callers

nothing calls this directly

Calls 4

modelsMethod · 0.80
dataMethod · 0.45
removeModelMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected