MCPcopy Create free account
hub / github.com/KDE/labplot / testCommonFalse

Method testCommonFalse

tests/import_export/MQTT/MQTTTest.cpp:121–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void MQTTTest::testCommonFalse() {
122 auto* client = new MQTTClient(QStringLiteral("test"));
123 const QString fileName = m_dataDir + QStringLiteral("common_false.txt");
124 QFile file(fileName);
125
126 if (file.open(QIODevice::ReadOnly)) {
127 QTextStream in(&file);
128
129 while (!in.atEnd()) {
130 QString line = in.readLine();
131 auto topics = line.split(QLatin1Char(' '), Qt::SkipEmptyParts);
132 QCOMPARE(client->checkCommonLevel(topics[0], topics[1]), QString());
133 }
134
135 delete client;
136 file.close();
137 }
138}
139
140// ##############################################################################
141// ################# test handling of data received by messages ###############

Callers

nothing calls this directly

Calls 6

atEndMethod · 0.80
splitMethod · 0.80
QStringClass · 0.50
openMethod · 0.45
checkCommonLevelMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected