-
Notifications
You must be signed in to change notification settings - Fork 58
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
Improve test coverage of NodeLabelParameter #365
Conversation
https://jqno.nl/equalsverifier/ is much more thorough in testing the equals and hashCode implementations. Use it rather than crafting separate tests of our own.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Approved.
I switched the equals
and hashCode
tests to use equalsverifier instead. It performs a much deeper check of the equals implementation and the hashCode implementation and requires less code.
Used the same technique to test one other class that has an equals
implementation in the class. There is still one class that has an equals
implementation that is not checked by equalsverifier. My attempts to use equalsverifier on that class failed and I ran out of time to investigate further.
Great! Thank You for switching to equalsverifier. I didn't know that there was already such a compact implementation is present. |
You're welcome to do that. It certainly is a way to learn and it will probably teach you many things about the relationship between the |
Sure 👍, if the implementation goes tangent to me I will move on to other issues. |
Testing done
Hello @MarkEWaite, Added some test case which improved the overall test coverage from 76% to 80%.
Submitter checklist