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

Method testToolTip

tests/methodmodeltest.cpp:106–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 static void testToolTip()
107 {
108 QFETCH(QString, name);
109 QFETCH(QString, toolTip);
110
111 ObjectMethodModel srcModel;
112 ClientMethodModel model;
113 model.setSourceModel(&srcModel);
114 srcModel.setMetaObject(&staticMetaObject);
115
116 auto idx = searchContainsIndex(&model, name);
117 QVERIFY(idx.isValid());
118 QCOMPARE(model.columnCount(), 4);
119 for (int i = 0; i < model.columnCount(); ++i) {
120 QVERIFY(idx.sibling(idx.row(), i).data(Qt::ToolTipRole).toString().contains(toolTip));
121 }
122 }
123
124 void testInvokeMethod()
125 {

Callers

nothing calls this directly

Calls 6

rowMethod · 0.80
setSourceModelMethod · 0.45
setMetaObjectMethod · 0.45
isValidMethod · 0.45
columnCountMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected