| 544 | |
| 545 | |
| 546 | void TestCodeCompletion::testClangCodeCompletionType() |
| 547 | { |
| 548 | QFETCH(QString, fileExtension); |
| 549 | QFETCH(QString, code); |
| 550 | QFETCH(CompletionItems, expectedItems); |
| 551 | QFETCH(QString, expedtedItem); |
| 552 | QFETCH(QString, expectedType); |
| 553 | |
| 554 | auto executeItem = [=] (const ClangCodeCompletionItemTester& tester) { |
| 555 | auto item = tester.findItem(expedtedItem); |
| 556 | QVERIFY(item); |
| 557 | auto declaration = item->declaration(); |
| 558 | QVERIFY(declaration); |
| 559 | QCOMPARE(declaration->abstractType()->toString(), expectedType); |
| 560 | }; |
| 561 | |
| 562 | executeCompletionTest(code, expectedItems, NoMacroOrBuiltin, executeItem, fileExtension); |
| 563 | } |
| 564 | |
| 565 | void TestCodeCompletion::testClangCodeCompletionType_data() |
| 566 | { |
nothing calls this directly
no test coverage detected