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

Function targetByExe

plugins/cmake/testing/ctestutils.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static CMakeTarget targetByExe(const QHash< KDevelop::Path, QVector<CMakeTarget>>& targets, const KDevelop::Path& exe)
37{
38 for (const auto& subdir: targets) {
39 for (const auto &target: subdir) {
40 if (target.artifacts.contains(exe))
41 return target;
42 }
43 }
44
45 return {};
46}
47
48std::vector<std::unique_ptr<CTestSuite>>
49CTestUtils::createTestSuites(const QVector<CMakeTest>& testSuites,

Callers 1

createTestSuitesMethod · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected