| 34 | } |
| 35 | |
| 36 | static 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 | |
| 48 | std::vector<std::unique_ptr<CTestSuite>> |
| 49 | CTestUtils::createTestSuites(const QVector<CMakeTest>& testSuites, |
no test coverage detected