-
Notifications
You must be signed in to change notification settings - Fork 20
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
unit tests for PoolConfigLib #506
Conversation
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.
Nice tests! Much clearer than checking bytes only
@@ -0,0 +1,801 @@ | |||
// SPDX-License-Identifier: GPL-3.0-or-later |
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.
Nice!
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!
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.
Very thorough :) Some of this might be redundant/overkill, as we have very robust tests for WordCodec, which underpins all of this.
However, it is testing that the constant offsets don't step on each other (which could be missed by other tests), and that the bits "line up" with the corresponding functions.
We don't modify this too often, so I suppose it isn't too onerous to maintain. Odd that it updates snaps when all we're doing is tests. I guess they were out-of-date? Make sure it's updated from latest main and rerun to see if those go away.
The only substantive thing is the "crete" function naming; other than that, I'll never complain about adding tests :)
Co-authored-by: EndymionJkb <[email protected]>
I wanted to check every function, offset, and that the data in the structure exactly matches the bits. Maybe it's too much😅 |
Description
Added unit tests for Pool ConfigLib but the coverage result is wrong -_-
Type of change
Checklist:
main
, or there's a description of how to mergeIssue Resolution
Closes #497, #498