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

tests: add configuration to verify that MathOnFloatProcessor does skip repairs for Incomplete cases #868

Merged
merged 5 commits into from
Aug 22, 2022

Conversation

algomaster99
Copy link
Member

I felt the test was necessary so that we are sure that the violation is being detected, but we are intentionally not repairing it.

@khaes-kth khaes-kth changed the title tests: add configuration to verify that Incomplete Processors do skip repairs tests: add configuration to verify that MathOnFloatProcessor does skip repairs for Incomplete cases Aug 22, 2022
@khaes-kth khaes-kth merged commit 901c897 into fix-S2164 Aug 22, 2022
@khaes-kth khaes-kth deleted the incomplete-processor-test branch August 22, 2022 12:39
khaes-kth pushed a commit that referenced this pull request Aug 22, 2022
* Fix repair for S2164: Math should not be performed on floats

* Update generated field

* Update repair description

* Verify repair for field

* Improve coverage

* tests: add configuration to verify that MathOnFloatProcessor does skip repairs for Incomplete cases (#868)

* Add test to verify that INCOMPLETE processor skip repairs

* Assert that the repaired file compiles

* Add docstrings

* Add information about `INCOMPLETE` processor tests

* Strengthen test

* Assume that the parent of CtBinaryOperator will always be a CtTypedElement

* Remove redundant methods

* Simplify canRepairInternal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants