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 quicklist unit test to new framework #515

Open
wants to merge 6 commits into
base: unstable
Choose a base branch
from

Conversation

artikell
Copy link
Contributor

It seems that the quicklist is a very troublesome change, and currently PR has attempted to complete the migration of the quicklist. There are several modification points involved:

  • Removed static tag from quicklist
  • Added TestMain for initializing test data
  • Added a declaration to quicklist. h
  • There are fewer logs compared to before, mainly the logs brought by TEST and TEST DECR
  • Default change to attempted_compress

Although there are many points that need to be discussed.

Copy link

codecov bot commented May 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.18%. Comparing base (1c55f3c) to head (4ff0bdc).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #515      +/-   ##
============================================
- Coverage     70.19%   70.18%   -0.01%     
============================================
  Files           109      109              
  Lines         59905    59907       +2     
============================================
- Hits          42050    42047       -3     
- Misses        17855    17860       +5     
Files Coverage Δ
src/quicklist.c 84.76% <ø> (+0.04%) ⬆️
src/server.c 88.91% <ø> (ø)

... and 11 files with indirect coverage changes

@artikell artikell force-pushed the quicklist_test_framework branch 4 times, most recently from 2a6f11e to 9790186 Compare May 25, 2024 07:17
Signed-off-by: artikell <739609084@qq.com>
Signed-off-by: artikell <739609084@qq.com>
Signed-off-by: artikell <739609084@qq.com>
Signed-off-by: artikell <739609084@qq.com>
Signed-off-by: artikell <739609084@qq.com>
…it test

Signed-off-by: artikell <739609084@qq.com>
@artikell
Copy link
Contributor Author

@madolson I need your help to review it. I have broken it down into multiple commitments. Used to assist with code review.
There are several key points involved in this:

  • I tried to include quicklist. c
  • Used python script to replace function
  • Continuing to use err to determine if there is an error

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

1 participant