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

Method functions

plugins/qmakemanager/parser/tests/lexertest.cpp:179–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void LexerTest::functions()
180{
181 QFETCH(QString, project);
182 QFETCH(QList<QVariant>, expectedtokens);
183 QFETCH(QList<QVariant>, expectedbegins);
184 QFETCH(QList<QVariant>, expectedends);
185 QMake::Lexer l(nullptr, project);
186 QList<QVariant> tokens;
187 QList<QVariant> begins;
188 QList<QVariant> ends;
189 int token = 0;
190 do {
191 token = l.nextTokenKind();
192 tokens << token;
193 begins << qulonglong(l.tokenBegin());
194 ends << qulonglong(l.tokenEnd());
195 } while (token != 0);
196 tokens.removeLast();
197 begins.removeLast();
198 ends.removeLast();
199
200 QVERIFY(tokens == expectedtokens);
201 QVERIFY(begins == expectedbegins);
202 QVERIFY(ends == expectedends);
203}
204
205void LexerTest::functions_data()
206{

Callers

nothing calls this directly

Calls 3

nextTokenKindMethod · 0.80
tokenBeginMethod · 0.80
tokenEndMethod · 0.80

Tested by

no test coverage detected