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

chore: qlist improvements #4194

Merged
merged 1 commit into from
Nov 27, 2024
Merged

chore: qlist improvements #4194

merged 1 commit into from
Nov 27, 2024

Conversation

romange
Copy link
Collaborator

@romange romange commented Nov 26, 2024

  1. Reduce code duplication.
  2. Expose qlist node count via "debug object"
  3. Add more tests to qlist_test
  4. Fix a bug in QList::Erase

@romange romange requested a review from BorysTheDev November 26, 2024 14:12
1. Reduce code duplication.
2. Expose qlist node count via "debug object"
3. Add more tests to qlist_test
4. Fix a bug in QList::Erase

Signed-off-by: Roman Gershman <[email protected]>
@@ -382,4 +385,132 @@ TEST_P(OptionsTest, DelRangeD) {
ASSERT_EQ(30, ql_.Size());
}

TEST_P(OptionsTest, DelRangeNode) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the tests are adaptation of quicklist.c tests in valkey.

@romange romange merged commit 065a63c into main Nov 27, 2024
9 checks passed
@romange romange deleted the Pr1 branch November 27, 2024 09:28
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