main#1622
Open
mansibrahman03 wants to merge 11 commits into
Open
Conversation
Updated implementation notes and testing strategy in CONTRIBUTING.md.
Author
|
Hi @sbryngelson — this is my first contribution to this project. I've fixed issue #1508 by adding the flag() helper method in case_validator.py and updating ast_analyzer.py to recognize calls to flag(). Would appreciate a review when you have time! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1622 +/- ##
==========================================
- Coverage 60.94% 60.39% -0.56%
==========================================
Files 82 83 +1
Lines 19922 19854 -68
Branches 2924 2955 +31
==========================================
- Hits 12141 11990 -151
- Misses 5805 5863 +58
- Partials 1976 2001 +25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
I added a flag() method in toolchain/mfc/case_validator.py that functions to replace the verbose idiom "self.get(x,F)==T" repeated in 134 places across the file. I also updated ast_analyzer.py to recognize calls made to flag().
Why was this PR needed?
The repetition of the verbose idiom in case_validator.py made the code hard to read and more prone to error. The flag() helper centralizes the logical convention in one place. The change to ast_analyzer.py was needed to ensure this new helper method is recognized.
What are the relevant issue numbers?
Closes #1508
Testing
All tests on flag() helper and coupling passing in toolchain/mfc/params_tests/test_flag_helper.py.
Does this PR meet the acceptance criteria?