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

Method testContainTrue

tests/import_export/MQTT/MQTTTest.cpp:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void MQTTTest::testContainTrue() {
81 auto* client = new MQTTClient(QStringLiteral("test"));
82 const QString fileName = m_dataDir + QStringLiteral("contain_true.txt");
83 QFile file(fileName);
84
85 if (file.open(QIODevice::ReadOnly)) {
86 QTextStream in(&file);
87
88 while (!in.atEnd()) {
89 QString line = in.readLine();
90 auto topics = line.split(QLatin1Char(' '), Qt::SkipEmptyParts);
91 QCOMPARE(client->checkTopicContains(topics[0], topics[1]), true);
92 }
93
94 delete client;
95 file.close();
96 }
97}
98
99// ##############################################################################
100// ############################ check common topics ###########################

Callers

nothing calls this directly

Calls 5

atEndMethod · 0.80
splitMethod · 0.80
openMethod · 0.45
checkTopicContainsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected