- Notifications
You must be signed in to change notification settings - Fork 22
[FIX] Handle new added classes #898
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
fixes CF-834
PR Type
Enhancement, Tests
Description
Extract import-insertion helper function
Support inserting newly added classes
Update replacer to add unique classes
Add tests for new class handling
Diagram Walkthrough
File Walkthrough
code_extractor.py
Extract and reuse import insertion index findercodeflash/code_utils/code_extractor.py
find_insertion_index_after_importshelper.code_replacer.py
Support insertion of newly added classescodeflash/code_utils/code_replacer.py
test_code_replacement.py
Add tests for new class insertion and expectationstests/test_code_replacement.py