-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Refactoring Redis #1271
Refactoring Redis #1271
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1271 +/- ##
==========================================
- Coverage 93.87% 93.81% -0.06%
==========================================
Files 75 77 +2
Lines 6023 6080 +57
==========================================
+ Hits 5654 5704 +50
- Misses 284 289 +5
- Partials 85 87 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have very minor suggestions, looks good and splitting config.go
more is always great!
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
The approach you did looks fine to me. I had gone with the context per describe technique to not have to add initialization to each test and limit the changes I had to do, but I think what you did is what ginkgo actually expects. |
I try to stay as close to the ginkgo principal/best practice since they seem to get flaky otherwise when running in parallel. I'll fix the tests tomorrow when I'm back home. 👍 |
Currently uncovered are |
If you really want to get coverage for the paths where the context is done, you can call the functions with a already cancelled context, that works in most cases. But yeah it's can be annoying to test and worse case it doesn't have too much impact if broken so I'd say it's not mandatory to get 100%, testing the logic is more important :) |
Thought about that but got stuck at
I've already started working on something like that but as part of utility functions and determined it would be out of scope for this PR. So maybe add it later on? 🤔
I like numbers and seeing em drop is discouraging... 😅 |
Yeah for sure can be done later just trying to give ideas for the tests. |
Was meant like: I was thinking in the same direction 😉 |
I added Im currently satisfied with the result even if the coverage dropped since there are now some error checks which are troublesome to test but should work( |
Changes:
Part of #1264