-
Notifications
You must be signed in to change notification settings - Fork 145
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
chore: Create a thorough unit test for KeyComparator #10753
Conversation
jsync-swirlds
commented
Jan 3, 2024
•
edited
Loading
edited
- Added KeyComparatorTest
- Added data-driven testing to exercise all probable input combinations.
- Adjusted KeyComparator to correctly order keys where testing showed errors.
- Adjusted one other unit test that depends on key ordering to match correct order.
Node: Unit Test Results 2 294 files + 1 2 294 suites +1 1h 0m 39s ⏱️ + 6m 26s Results for commit bd9e080. ± Comparison against base commit 8aeb2d6. ♻️ This comment has been updated with latest results. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10753 +/- ##
=============================================
+ Coverage 62.80% 62.85% +0.05%
- Complexity 30970 31005 +35
=============================================
Files 3384 3384
Lines 136851 136851
Branches 14267 14264 -3
=============================================
+ Hits 85949 86020 +71
+ Misses 47488 47392 -96
- Partials 3414 3439 +25 ☔ View full report in Codecov by Sentry. |
919a0b4
to
8e3f18f
Compare
* Added KeyComparatorTest * Added data-driven testing to exercise all probable input combinations. * Adjusted KeyComparator to correctly order keys where testing showed errors. * Adjusted one other unit test that depends on key ordering to match correct order. Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
8e3f18f
to
bd9e080
Compare
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.
Test looks great! 👍
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.
Good Test!
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.
LGTM, tyvm @jsync-swirlds !
Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>