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

Method testCustomTargetSources

plugins/cmake/tests/test_cmakemanager.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void TestCMakeManager::testCustomTargetSources()
232{
233 IProject* project = loadProject(QStringLiteral("custom_target_sources"));
234
235 QList<ProjectTargetItem*> targets = project->buildSystemManager()->targets(project->projectItem());
236 QVERIFY(targets.size() == 1);
237
238 ProjectTargetItem *target = targets.first();
239 QCOMPARE(target->fileList().size(), 1);
240 QCOMPARE(target->fileList().first()->baseName(), QStringLiteral("foo.cpp"));
241}
242
243void TestCMakeManager::testConditionsInSubdirectoryBasedOnRootVariables()
244{

Callers

nothing calls this directly

Calls 8

buildSystemManagerMethod · 0.80
baseNameMethod · 0.80
loadProjectFunction · 0.70
targetsMethod · 0.45
projectItemMethod · 0.45
sizeMethod · 0.45
firstMethod · 0.45
fileListMethod · 0.45

Tested by

no test coverage detected