-
Notifications
You must be signed in to change notification settings - Fork 316
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 'relevant_line_number_to_insert_tests_after' bug #149
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves the issue. Tested locally.
PR Type
Bug fix, Enhancement
Description
relevant_line_number_to_insert_tests_after
calculation inUnitTestGenerator.py
.flush
calls after writing to the test file to ensure immediate disk write.relevant_line_number_to_insert_tests_after
after successful test validation to prevent incorrect line insertions.test_generation_prompt.toml
.Changes walkthrough 📝
UnitTestGenerator.py
Fix and enhance test insertion logic in UnitTestGenerator
cover_agent/UnitTestGenerator.py
relevant_line_number_to_insert_tests_after
calculation.
flush
calls after writing to the test file.relevant_line_number_to_insert_tests_after
after successful testvalidation.
test_generation_prompt.toml
Clean up test generation prompt settings
cover_agent/settings/test_generation_prompt.toml