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

Add tests for util #411

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

romainbrenguier
Copy link

@romainbrenguier romainbrenguier commented Aug 5, 2019

I've analysed your codebase and noticed that edu.uic.ics.crawler4j.Util was not tested.
I've written some tests for the methods in this class with the help of Diffblue Cover.
Along the way I found a bug in byteArray2Long and implemented a fix for that.
Hopefully, these tests will help you detect any regressions caused by future code changes. If you would find it useful to have additional tests written for this repository, I would be more than happy to look at other classes that you consider important in a subsequent PR.

romainbrenguier and others added 2 commits August 5, 2019 14:04
This was wrongly declared as int, causing the result to be incorrect for
long values that do not fit in a int.
These tests were written using Diffbule Cover.
Copy link
Contributor

@Chaiavi Chaiavi left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@Chaiavi
Copy link
Contributor

Chaiavi commented Jan 19, 2020

Please merge this pull request

@romainbrenguier thank you for the fix and the tests, good job

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