-
Notifications
You must be signed in to change notification settings - Fork 129
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(lib/trie): refactor database tests #2338
Conversation
7606da9
to
4e9997d
Compare
9e81d43
to
689751f
Compare
f08d09d
to
d43e9af
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.
nice copypasta removal
f33420d
to
c3dc9ab
Compare
d43e9af
to
ae15202
Compare
Codecov Report
@@ Coverage Diff @@
## development #2338 +/- ##
===============================================
- Coverage 61.52% 61.52% -0.01%
===============================================
Files 215 215
Lines 28267 28267
===============================================
- Hits 17391 17390 -1
+ Misses 9105 9104 -1
- Partials 1771 1773 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
39ab29e
to
24bb458
Compare
ae15202
to
3eebd91
Compare
80998f2
to
917e1c2
Compare
3eebd91
to
0091757
Compare
e0eee15
to
ba3c5dd
Compare
0091757
to
bafc15f
Compare
ba3c5dd
to
908596a
Compare
908596a
to
4b32aaf
Compare
bafc15f
to
19d419b
Compare
I changed the refactor further to use randomly generated key values. This helped me out find a bug in another branch, so it definitely has a use. Unfortunately, I don't think fuzzing can be applied in this particular case. |
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 improvements!! LGTM
- Bigger test sets (can't use fuzzing) - Removed hardcoded test sets - Removed duplicate tests - Rename `res` tries to `trieFromDB` - Remove unneeded test code for loops
19d419b
to
613dffc
Compare
Changes
run with subtests(older)extensible test case struct fields(older)Store repeating values in functions(older)res
tries totrieFromDB
ℹ️ New changes were made to have bigger random test sets since this helped me out debunk some problems in another branch
Tests
Issues
Primary Reviewer