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

Introduce SourceCode#unwrapMethodInvocation utility method #561

Merged

Conversation

Stephan202
Copy link
Member

@Stephan202 Stephan202 commented Apr 2, 2023

Suggested commit message:

Introduce `SourceCode#unwrapMethodInvocation` utility method (#561)

I'll rebase #560 on top of this PR to use the new method. Another upcoming PR will also use it.

@Stephan202 Stephan202 added this to the 0.10.0 milestone Apr 2, 2023
@Stephan202 Stephan202 requested a review from rickie April 2, 2023 14:37
Comment on lines +94 to +96
if (sourceCode == null || startPosition == Position.NOPOS || endPosition == Position.NOPOS) {
return unwrapMethodInvocationDroppingWhitespaceAndComments(tree, state);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Here and below: not sure how to test the "source code absent" case, so Pitest will complain about those.

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

  • Surviving mutants in this change: 6
  • Killed mutants in this change: 17
class surviving killed
🧟tech.picnic.errorprone.bugpatterns.util.SourceCode 6 17

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie rickie force-pushed the sschroevers/introduce-unwrap-method-invocation-utility branch from c731b57 to 5ae92ab Compare April 7, 2023 12:48
@github-actions
Copy link

github-actions bot commented Apr 7, 2023

  • Surviving mutants in this change: 6
  • Killed mutants in this change: 17
class surviving killed
🧟tech.picnic.errorprone.bugpatterns.util.SourceCode 6 17

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.

Love the testing setup 🚀 !

@rickie rickie merged commit 6e6f8d9 into master Apr 7, 2023
@rickie rickie deleted the sschroevers/introduce-unwrap-method-invocation-utility branch April 7, 2023 13:05
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