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

Improve AbstractMatcherTestChecker #599

Merged
merged 1 commit into from
May 26, 2023

Conversation

Stephan202
Copy link
Member

@Stephan202 Stephan202 commented Apr 26, 2023

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 Matchers 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:

Improve `AbstractMatcherTestChecker` (#599)

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.

@github-actions
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie
Copy link
Member

rickie commented Apr 26, 2023

Hey @mlrprananta, would you be okay with continuing on #527 as @Stephan202 suggests on top of this PR? 😄

@rickie rickie modified the milestones: 0.10.0, 0.11.0 May 4, 2023
@Stephan202 Stephan202 modified the milestones: 0.11.0, 0.12.0 May 14, 2023
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.
@rickie rickie force-pushed the sschroevers/improve-AbstractMatcherTestChecker branch from 1d630d7 to 386fd74 Compare May 25, 2023 11:37
@rickie
Copy link
Member

rickie commented May 25, 2023

Rebased.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link
Member

@rickie rickie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement! 🚀

Copy link
Contributor

@mlrprananta mlrprananta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rickie rickie merged commit 8bc878a into master May 26, 2023
@rickie rickie deleted the sschroevers/improve-AbstractMatcherTestChecker branch May 26, 2023 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants