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

Function initTestCase

tests/networkselectionmodeltest.cpp:128–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128class NetworkSelectionModelTest : public QObject
129{
130 Q_OBJECT
131private:
132 static void fillModel(QStandardItemModel *model)
133 {
134 model->appendRow(new QStandardItem(QStringLiteral("Row 1")));
135 model->appendRow(new QStandardItem(QStringLiteral("Row 2")));
136 model->appendRow(new QStandardItem(QStringLiteral("Row 3")));
137 model->appendRow(new QStandardItem(QStringLiteral("Row 4")));
138 model->appendRow(new QStandardItem(QStringLiteral("Row 5")));
139 }
140
141private slots:
142 static void initTestCase()
143 {
144 qRegisterMetaType<QItemSelection>();
145 qRegisterMetaType<QModelIndex>();
146
147 new FakeEndpoint;
148 QVERIFY(Endpoint::instance());
149 QVERIFY(Endpoint::isConnected());
150 }
151
152 static void cleanupTestCase()
153 {

Callers 6

LauncherUiIPTestClass · 0.70
MetaObjectTestClass · 0.70
PropertyModelTestClass · 0.70
ObjectInstanceTestClass · 0.70
QuickInspectorBenchClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected