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

Method testAddModel

plugins/problemreporter/tests/test_problemsview.cpp:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void TestProblemsView::testAddModel()
74{
75 ProblemModelSet* pms = ICore::self()->languageController()->problemModelSet();
76 pms->addModel(QStringLiteral("MODEL2_ID"), QStringLiteral("MODEL2"), new ProblemModel(pms));
77
78 QTabWidget* tab = tabWidget();
79 QVERIFY(tab);
80 QCOMPARE(tab->count(), 2);
81 QCOMPARE(tab->tabText(0), QStringLiteral("MODEL1 (1)"));
82 QCOMPARE(tab->tabText(1), QStringLiteral("MODEL2 (0)"));
83}
84
85QVector<bool> visibilites(const QList<QAction*>& actions)
86{

Callers

nothing calls this directly

Calls 4

problemModelSetMethod · 0.80
languageControllerMethod · 0.80
addModelMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected