| 153 | } |
| 154 | |
| 155 | bool LldbFormattersTest::verifyVariable(int index, const QString &name, |
| 156 | const QString &expectedSummary, |
| 157 | QStringList expectedChildren, |
| 158 | const char *file, int line, |
| 159 | bool isLocal, bool useRE, bool unordered) |
| 160 | { |
| 161 | QList<QPair<QString, QString>> childrenPairs; |
| 162 | childrenPairs.reserve(expectedChildren.size()); |
| 163 | if (unordered) { |
| 164 | qDebug() << "useRE set to true when unordered = true"; |
| 165 | useRE = true; |
| 166 | expectedChildren.sort(); |
| 167 | for (auto& c : expectedChildren) { |
| 168 | childrenPairs << qMakePair(QStringLiteral(R"(^\[\d+\]$)"), c); |
| 169 | } |
| 170 | } else { |
| 171 | for (int i = 0; i != expectedChildren.size(); ++i) { |
| 172 | childrenPairs << qMakePair(QStringLiteral("[%0]").arg(i), expectedChildren[i]); |
| 173 | } |
| 174 | } |
| 175 | return verifyVariable(index, name, expectedSummary, childrenPairs, file, line, isLocal, useRE, unordered); |
| 176 | } |
| 177 | |
| 178 | bool LldbFormattersTest::verifyVariable(int index, const QString &name, |
| 179 | const QString &expectedSummary, |
nothing calls this directly
no test coverage detected