Skip to content

Issue #13328: kill mutations in MatchXpathCheck#13726

Merged
romani merged 1 commit intocheckstyle:masterfrom
rdiachenko:issue-13328-match-xpath-check
Sep 11, 2023
Merged

Issue #13328: kill mutations in MatchXpathCheck#13726
romani merged 1 commit intocheckstyle:masterfrom
rdiachenko:issue-13328-match-xpath-check

Conversation

@rdiachenko
Copy link
Copy Markdown
Member

@rdiachenko rdiachenko commented Sep 10, 2023

Issue #13328

Attempt to improve this PR: #13242

@rdiachenko rdiachenko self-assigned this Sep 10, 2023
@rdiachenko rdiachenko force-pushed the issue-13328-match-xpath-check branch 2 times, most recently from e6841a2 to 9337fe9 Compare September 10, 2023 17:02
@rdiachenko rdiachenko force-pushed the issue-13328-match-xpath-check branch from 9337fe9 to 0e0b886 Compare September 10, 2023 18:41
@rdiachenko
Copy link
Copy Markdown
Member Author

Github, generate report

@Override
public void beginTree(DetailAST rootAST) {
if (xpathExpression != null) {
if (!query.isEmpty()) {
Copy link
Copy Markdown
Member Author

@rdiachenko rdiachenko Sep 10, 2023

Choose a reason for hiding this comment

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

xpathExpression depends on query, if query is not empty the xpathExpression is set in setQuery and is guaranteed to be not null.
Updating this condition allows to use default value for query with pitest mutation killed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok to merge

@rdiachenko rdiachenko marked this pull request as ready for review September 10, 2023 19:16
@rdiachenko rdiachenko assigned romani and unassigned rdiachenko Sep 10, 2023
@rdiachenko rdiachenko requested a review from romani September 10, 2023 19:20
Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Ok to merge.
Regression report is not required.

@romani romani requested a review from Vyom-Yadav September 10, 2023 19:37
@romani romani assigned Vyom-Yadav and unassigned romani Sep 10, 2023
Copy link
Copy Markdown
Member

@Vyom-Yadav Vyom-Yadav left a comment

Choose a reason for hiding this comment

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

LGTM!

@Vyom-Yadav Vyom-Yadav assigned romani and unassigned Vyom-Yadav Sep 11, 2023
@romani romani merged commit 960f93a into checkstyle:master Sep 11, 2023
@rdiachenko rdiachenko deleted the issue-13328-match-xpath-check branch September 12, 2023 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants