Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix target selection for files and lines (closes #557) #561

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

Lana243
Copy link
Collaborator

@Lana243 Lana243 commented Dec 5, 2022

When test are generating for file, function, line, assertion, class or predicate and automatic target is chosen, UTBot selects target that contains the source file

@Lana243 Lana243 changed the title Fix target selection Fix target selection (closes #557) Dec 5, 2022
@Lana243 Lana243 requested a review from ladisgin December 5, 2022 14:07
@Lana243 Lana243 linked an issue Dec 5, 2022 that may be closed by this pull request
@Lana243 Lana243 force-pushed the Lana243/fix-target-selection branch 4 times, most recently from c9c214c to 63c9039 Compare December 7, 2022 10:01
@Lana243 Lana243 force-pushed the Lana243/fix-target-selection branch from 1699202 to 5f9cc54 Compare December 12, 2022 14:23
@Lana243 Lana243 force-pushed the Lana243/fix-target-selection branch from 5f9cc54 to 0584611 Compare December 12, 2022 14:25
@@ -19,7 +19,7 @@ TargetBuildDatabase::TargetBuildDatabase(BuildDatabase *baseBuildDatabase, const
}
}

isAutoTarget = target == GrpcUtils::UTBOT_AUTO_TARGET_PATH;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have any other assignments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check always fails, so I just initialized the value of this flag by false.
I guess this flag should be fixed in another PR as it involves another fixes.

@Lana243 Lana243 changed the title Fix target selection (closes #557) Fix target selection for files and lines (closes #557) Dec 14, 2022
@Lana243 Lana243 merged commit ee4f9df into main Dec 14, 2022
@sava-cska sava-cska deleted the Lana243/fix-target-selection branch December 19, 2022 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UTBot auto target fails
2 participants