-
Notifications
You must be signed in to change notification settings - Fork 187
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
feat: support for pointers to primitives in Scan() and HSet() #388
Conversation
support pointers to primitives
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #388 +/- ##
==========================================
- Coverage 97.55% 97.55% -0.01%
==========================================
Files 76 76
Lines 30683 30693 +10
==========================================
+ Hits 29934 29942 +8
- Misses 627 629 +2
Partials 122 122
☔ View full report in Codecov by Sentry. |
Hi @numberinho, thank you for your contribution! These changes look good to me. Could you also modify the testes here https://github.com/redis/rueidis/blob/main/rueidiscompat/hscan_test.go to cover these changes? |
Hey @rueian, thank you for this awesome library and your super fast replies! I really appreciate your effort and work :) I tried adding a test, but I'm not very used to the testing framework. Hopefully I implemented it in the right way. Did you notice that I also added some lines to modify the |
It is in the right way. The test is passed.
They also look good to me, but I notice that the test does not cover them. Could you also edit another test here to cover them? rueidis/rueidiscompat/adapter_test.go Lines 2242 to 2296 in f0f37fc
|
Easy way to implement support for pointers to primitives at the
Scan()
method. Uses built-in decoders by just passing the kind of the element of the pointer to the decoders map.