File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ std::optional<fs::path> GenerationUtils::findTarget(const BaseTestGen &baseTestG
60
60
LOG_S (INFO) << " Target was not chosen. Using UTBot: Auto target instead." ;
61
61
return GrpcUtils::UTBOT_AUTO_TARGET_PATH;
62
62
}
63
- auto rootTargets = baseTestGen.buildDatabase ->getRootTargets ();
64
- auto candidates = CollectionUtils::filterOut (rootTargets , [&name](auto const &rootTarget ) {
65
- fs::path output = rootTarget ->getOutput ();
63
+ auto allTargets = baseTestGen.buildDatabase ->getAllTargets ();
64
+ auto candidates = CollectionUtils::filterOut (allTargets , [&name](auto const &target ) {
65
+ fs::path output = target ->getOutput ();
66
66
return !(output == name || output.stem () == name || output.stem () == " lib" + name);
67
67
});
68
68
if (candidates.empty ()) {
69
69
LOG_S (WARNING) << " Couldn't find appropriate target. List of available targets:\n " ;
70
- for (const auto &rootTarget : rootTargets ) {
71
- LOG_S (WARNING) << rootTarget ->getOutput () << " \n " ;
70
+ for (const auto &target : allTargets ) {
71
+ LOG_S (WARNING) << target ->getOutput () << " \n " ;
72
72
}
73
73
LOG_S (WARNING) << " \n " ;
74
74
return std::nullopt;
You can’t perform that action at this time.
0 commit comments