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

Method testAddModel

kdevplatform/shell/tests/test_problemmodelset.cpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void TestProblemModelSet::testAddModel()
85{
86 QSignalSpy spy(m_set.data(), &ProblemModelSet::added);
87
88 int c = 0;
89 for (int i = 0; i < testModelCount; i++) {
90 m_set->addModel(m_testData[i].id, m_testData[i].name, m_testData[i].model);
91 c++;
92 QCOMPARE(spy.count(), c);
93 QCOMPARE(m_set->models().count(), c);
94 }
95
96}
97
98void TestProblemModelSet::testFindModel()
99{

Callers

nothing calls this directly

Calls 4

modelsMethod · 0.80
dataMethod · 0.45
addModelMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected