-
-
Notifications
You must be signed in to change notification settings - Fork 579
Add test cases to GeocacheFilterTest #16960
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
Add test cases to GeocacheFilterTest #16960
Conversation
Can one of the core team members give me the the permission to test this? |
ok to test |
Job Summary for GradleUnit tests :: integration-tests
|
Job Summary for GradleUnit tests :: integration-tests
|
Note: The same 9 integration test failures in All of the failures are from OC-related modules ( My PR only adds unit tests to These failures seem unrelated to my changes and likely stem from CI environment limitations or external dependencies. Could you kindly help verify if this is acceptable? Please let me know if I should take any action. Thanks again for your review and time! |
Hi @RJCheuk , the failing integration tests are indeed unrelated. The important joba are "Codacy static. Code analysis" and "default". "Default" job shows all tests passing, you are fine there :-) However you have some lint/checkstyle errors in your PR. See Codacy and Jenkins. |
As for the import order and |
Job Summary for GradleUnit tests :: integration-tests
|
Job Summary for GradleUnit tests :: integration-tests
|
Job Summary for Gradle8000Unit tests :: integration-tests
|
Job Summary for GradleUnit tests :: integration-tests
|
Job Summary for GradleUnit tests :: integration-tests
|
Job Summary for GradleUnit tests :: integration-tests
|
Job Summary for GradleUnit tests :: integration-tests
|
Removed unnecessary blank lines
Thanks @RJCheuk for your contribution |
This PR adds four new unit tests to GeocacheFilterTest to improve test coverage of the GeocacheFilter class, specifically focusing on filtersSame() and filterList() behavior under minimal configuration.
· Added test cases:
filtersSameReturnsTrueForEmptyFilters()
➤ Verifies that two empty filters (with no internal tree) are considered equal.
filtersSameReturnsFalseIfInconclusiveDiffers()
➤ Verifies that filters with different includeInconclusive values are considered unequal.
filtersSameReturnsFalseIfNameDiffers()
➤ Verifies that filters with different names are considered unequal.
filterListWithNullTreeKeepsAll()
➤ Ensures that calling filterList() with a null tree does not remove any geocaches from the list.
·All tests pass successfully on local fork (RJCheuk/cgeo-rjz).
These tests help verify edge-case behavior in minimal or default filter configurations.