Skip to content
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

Merged
merged 4 commits into from
May 7, 2024

Conversation

karthyuom
Copy link
Contributor

This PR migrates all tests related to kvstore into new test framework as part of the parent issue #428.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.92%. Comparing base (2ed71de) to head (9bc2688).
Report is 1 commits behind head on unstable.

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     
Files Coverage Δ
src/kvstore.c 96.40% <ø> (ø)
src/server.c 88.60% <ø> (ø)

... and 11 files with indirect coverage changes

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
@madolson
Copy link
Member

madolson commented May 7, 2024

Thank you for doing this incrementally :)

@@ -0,0 +1,206 @@

#include "../kvstore.c"
#undef UNUSED
Copy link
Member

@madolson madolson May 7, 2024

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.

Copy link
Contributor Author

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.

src/unit/test_kvstore.c Outdated Show resolved Hide resolved
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson merged commit 4e944ce into valkey-io:unstable May 7, 2024
17 checks passed
madolson pushed a commit that referenced this pull request May 9, 2024
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>
@madolson madolson mentioned this pull request May 9, 2024
12 tasks
karthyuom added a commit to karthyuom/valkey that referenced this pull request May 13, 2024
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>
karthyuom added a commit to karthyuom/valkey that referenced this pull request May 13, 2024
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>
srgsanky pushed a commit to srgsanky/valkey that referenced this pull request May 19, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants