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

Improved coverage of property tests #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luisggpina
Copy link

Hi!

We are trying to increase the coverage of property tests for Java programs, and we found a way to do so in your project.
When using builders, not providing a page size allows to reach more code than always providing a page size.
As such, this PR changes the property tests so that sometimes they don't provide a page size to the builder, thus reaching more code.

For instance, on BatchFilterTest.generatesValidQueryParameters, not providing a page size causes the constructor on BatchFilterImpl to reach method BatchFilter.pageSize, which otherwise would not be reached by this test.
The argument for all the other tests is similar.

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.

1 participant