############################################################################## ################### check superior and inferior relations ################## ##############################################################################
| 59 | // ################### check superior and inferior relations ################## |
| 60 | // ############################################################################## |
| 61 | void MQTTTest::testContainFalse() { |
| 62 | auto* client = new MQTTClient(QStringLiteral("test")); |
| 63 | const QString fileName = m_dataDir + QStringLiteral("contain_false.txt"); |
| 64 | QFile file(fileName); |
| 65 | |
| 66 | if (file.open(QIODevice::ReadOnly)) { |
| 67 | QTextStream in(&file); |
| 68 | |
| 69 | while (!in.atEnd()) { |
| 70 | QString line = in.readLine(); |
| 71 | auto topics = line.split(QLatin1Char(' '), Qt::SkipEmptyParts); |
| 72 | QCOMPARE(client->checkTopicContains(topics[0], topics[1]), false); |
| 73 | } |
| 74 | |
| 75 | delete client; |
| 76 | file.close(); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void MQTTTest::testContainTrue() { |
| 81 | auto* client = new MQTTClient(QStringLiteral("test")); |
nothing calls this directly
no test coverage detected