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

Method testTemplateArgumentTypes

plugins/clang/tests/test_clangutils.cpp:155–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void TestClangUtils::testTemplateArgumentTypes()
156{
157 QFETCH(QByteArray, code);
158 QFETCH(int, cursorIndex);
159 QFETCH(QStringList, expectedTypes);
160
161 CursorCollectorVisitor visitor;
162 auto unit = runVisitor(code, visitor);
163 QVERIFY(cursorIndex < visitor.cursors.size());
164 const auto cursor = visitor.cursors[cursorIndex];
165 const QStringList types = ClangUtils::templateArgumentTypes(cursor);
166
167 QCOMPARE(types, expectedTypes);
168}
169
170void TestClangUtils::testTemplateArgumentTypes_data()
171{

Callers

nothing calls this directly

Calls 2

runVisitorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected