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

Method checkArea1

kdevplatform/sublime/tests/test_areaoperation.cpp:325–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void TestAreaOperation::checkArea1(MainWindow* mw)
326{
327 const auto* const splitter = checkAreaCommon(mw);
328 RETURN_IF_TEST_FAILED();
329 auto* const area = mw->area();
330
331 //check that we have a container and 4 views inside
332 auto *container = splitter->findChild<Sublime::Container*>();
333 QVERIFY(container);
334 ViewCounter c;
335 area->walkViews(c, area->rootIndex());
336 QCOMPARE(container->count(), c.count);
337 for (int i = 0; i < container->count(); ++i)
338 QVERIFY(container->widget(i) != nullptr);
339}
340
341void TestAreaOperation::checkArea2(MainWindow *mw)
342{

Callers

nothing calls this directly

Calls 6

checkAreaCommonFunction · 0.85
walkViewsMethod · 0.80
rootIndexMethod · 0.80
areaMethod · 0.45
countMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected