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

Issue #6207: Add XPath IT Regression for VisibilityModifier #14634

Merged

Conversation

Lmh-java
Copy link
Contributor

Part of Issue #6207. Add XPath Regression Test for VisibilityModifier

Documentation of VisibilityModifier: https://checkstyle.sourceforge.io/checks/design/visibilitymodifier.html

Hi, I am not sure whether these tests are sufficient enough to cover VisibilityModifier, could you please have a look.

Currently, there are tests for

  1. field with default modifier
  2. field with the annotation
  3. field inside an anonymous class
  4. field inside an inner class

Copy link
Contributor

@MANISH-K-07 MANISH-K-07 left a comment

Choose a reason for hiding this comment

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

Hi, I am not sure whether these tests are sufficient enough to cover VisibilityModifier, could you please have a look.

@Lmh-java ,
You can determine this from the input files of out src/test directory.
It is conventional and recommended to have one test-input here for each aspect that you find in above mentioned directory.

@Lmh-java
Copy link
Contributor Author

Got it! Thanks for answering.

@romani romani marked this pull request as ready for review March 10, 2024 05:24
Copy link
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.

Just to cover xpath of this Check , it is enough.

@romani romani merged commit b518572 into checkstyle:master Mar 10, 2024
112 of 113 checks passed
@Lmh-java Lmh-java deleted the xpath-regression-test-visibility-modifier branch March 10, 2024 07:25
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.

None yet

3 participants