-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improve AbstractMatcherTestChecker
#599
Conversation
Looks good. No mutations were possible for these changes. |
Hey @mlrprananta, would you be okay with continuing on #527 as @Stephan202 suggests on top of this PR? 😄 |
These changes enable testing of a wider range of `Matcher` implementations. In a nutshell: - The `Matcher` under test is now passed `VisitorState` instances with an accurate `TreePath`. - The `Matcher` under test is no longer consulted for method select and cast type expressions, mirroring Refaster behavior.
1d630d7
to
386fd74
Compare
Rebased. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Looks good. No mutations were possible for these changes. |
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.
Nice improvement! 🚀
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.
LGTM!
I extracted these changes from this branch, following the discussion in this thread. There are no tests for this test code. My proposal would be to finalize #527 on top of this PR as proof that it works. (Over time we'll introduce other
Matcher
s that will rely on (and thus exercise) this code. IIRC I have one or more other branches that would benefit from these changes. I might try to open PRs for those.)Suggested commit message: