-
Notifications
You must be signed in to change notification settings - Fork 487
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
Migrate kvstore.c unit tests to new test framework. #446
Conversation
Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #446 +/- ##
=========================================
Coverage 68.91% 68.92%
=========================================
Files 109 109
Lines 61793 61793
=========================================
+ Hits 42587 42591 +4
+ Misses 19206 19202 -4
|
Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Thank you for doing this incrementally :) |
@@ -0,0 +1,206 @@ | |||
|
|||
#include "../kvstore.c" | |||
#undef UNUSED |
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.
Given the rest of this looks good, you could maybe add this to another PR. Maybe we can update the definition in test_help to be:
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif
To avoid all of this repetition.
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.
@madolson sure, I will create a separate PR to address this repetition issue.
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This is a follow-up PR to address UNUSED repetition issue (see #446 (comment)) in different test source files. Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
This PR migrates all tests related to kvstore into new test framework as part of the parent issue valkey-io#428. --------- Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com> Signed-off-by: Madelyn Olson <madelyneolson@gmail.com> Co-authored-by: Madelyn Olson <madelyneolson@gmail.com> Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
This is a follow-up PR to address UNUSED repetition issue (see valkey-io#446 (comment)) in different test source files. Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
This is a follow-up PR to address UNUSED repetition issue (see valkey-io#446 (comment)) in different test source files. Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
This PR migrates all tests related to kvstore into new test framework as part of the parent issue #428.