MCPcopy Create free account
hub / github.com/KDAB/GammaRay / modelTest

Method modelTest

tests/metaobjecttreemodeltest.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35private slots:
36 void modelTest()
37 {
38 createProbe();
39
40 auto srcModel = ObjectBroker::model("com.kdab.GammaRay.MetaObjectBrowserTreeModel");
41 QVERIFY(srcModel);
42 MetaObjectTreeClientProxyModel model;
43 model.setSourceModel(srcModel);
44
45 QAbstractItemModelTester modelTest(&model);
46 Probe::instance()->discoverObject(this);
47 QTest::qWait(150); // wait for compressed change signals
48 }
49
50 void testModelContent()
51 {

Callers

nothing calls this directly

Calls 2

discoverObjectMethod · 0.80
setSourceModelMethod · 0.45

Tested by

no test coverage detected