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: default cache client testing #299

Merged
merged 5 commits into from
Apr 11, 2023
Merged

Conversation

pgautier404
Copy link
Contributor

This commit adds testing for CacheClient instances created using the NewCacheClientWithDefaultCache constructor. It focuses on happy path test cases to ensure that the default cache is used when CacheName is empty or omitted and that the default cache is overridden when CacheName is specified.

Copy link
Member

@eaddingtonwhite eaddingtonwhite left a comment

Choose a reason for hiding this comment

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

@pgautier404 looking good. I think maybe just in set_test.go copypasta'd some of the table test entry need to give uniquenames to each case? Other then that looking good. Thanks for doing this!

@pgautier404 pgautier404 merged commit 2edf56a into main Apr 11, 2023
@pgautier404 pgautier404 deleted the default-cache-client-testing branch April 11, 2023 16:54
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