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 util.c unit tests to new test framework #448

Merged
merged 2 commits into from
May 7, 2024

Conversation

karthyuom
Copy link
Contributor

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

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
@karthyuom karthyuom changed the title Migrate util tests to new test framework Migrate util.c unit tests to new test framework May 7, 2024
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.41%. Comparing base (93f8a19) to head (4f639a4).
Report is 3 commits behind head on unstable.

❗ Current head 4f639a4 differs from pull request most recent head 325c89a. Consider uploading reports for the commit 325c89a to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #448      +/-   ##
============================================
- Coverage     68.43%   68.41%   -0.03%     
============================================
  Files           109      109              
  Lines         61681    61681              
============================================
- Hits          42214    42201      -13     
- Misses        19467    19480      +13     
Files Coverage Δ
src/util.c 69.49% <ø> (ø)

... and 11 files with indirect coverage changes

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
@madolson madolson merged commit 2ed71de into valkey-io:unstable May 7, 2024
15 checks passed
@madolson madolson mentioned this pull request May 7, 2024
12 tasks
return flag&1;
}

int test_reclaimFilePageCache(int argc, char **argv, int flags) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to move this declaration outside of the ifdef, since we won't be able to build the tests on non-linux machines since it will complain it's not defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will take a look.

karthyuom added a commit to karthyuom/valkey that referenced this pull request May 13, 2024
This PR migrates all tests related to util into new test framework as
part of the parent issue valkey-io#428.

---------

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

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.

2 participants