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

Method testIncludePathCompletionLocal

plugins/clang/tests/test_codecompletion.cpp:1207–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205}
1206
1207void TestCodeCompletion::testIncludePathCompletionLocal()
1208{
1209 TestFile header(QStringLiteral("int foo() { return 42; }\n"), QStringLiteral("h"));
1210 TestFile impl(QStringLiteral("#include \""), QStringLiteral("cpp"), &header);
1211
1212 IncludeTester tester(executeIncludePathCompletion(&impl, {0, 10}));
1213 QVERIFY(tester.names.contains(header.url().toUrl().fileName()));
1214 QVERIFY(tester.names.contains("iostream"));
1215}
1216
1217void TestCodeCompletion::testOverloadedFunctions()
1218{

Callers

nothing calls this directly

Calls 5

containsMethod · 0.45
fileNameMethod · 0.45
toUrlMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected