MCPcopy Create free account
hub / github.com/KDE/kdevelop / verifyVariable

Method verifyVariable

plugins/lldb/unittests/test_lldbformatters.cpp:155–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool 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
178bool LldbFormattersTest::verifyVariable(int index, const QString &name,
179 const QString &expectedSummary,

Callers

nothing calls this directly

Calls 15

compareDataFunction · 0.85
variableCollectionFunction · 0.85
waitForAWhileFunction · 0.85
sortFunction · 0.85
QStringClass · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
sortMethod · 0.45
itemForIndexMethod · 0.45
rowCountMethod · 0.45
fetchMoreChildrenMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected