| 78 | } |
| 79 | |
| 80 | void 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 ########################### |
nothing calls this directly
no test coverage detected