Skip to content

Improved coverage of property tests#46

Open
luisggpina wants to merge 1 commit intosinch:masterfrom
bitslab:master
Open

Improved coverage of property tests#46
luisggpina wants to merge 1 commit intosinch:masterfrom
bitslab:master

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