-
Notifications
You must be signed in to change notification settings - Fork 17
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(url): Add valkey and valkeys schemes #21
Conversation
Added tests |
url_test.go
Outdated
@@ -15,12 +15,18 @@ func TestParseURL(t *testing.T) { | |||
if opt, err := ParseURL("rediss://"); err != nil || opt.TLSConfig == nil { | |||
t.Fatalf("unexpected %v %v", opt, err) | |||
} | |||
if opt, err := ParseURL("valkeyss://"); err != nil || opt.TLSConfig == nil { |
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.
Should this be valkeys?
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.
You are right! It's fixed. Thanks.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
=======================================
Coverage 94.68% 94.68%
=======================================
Files 92 92
Lines 39096 39096
=======================================
Hits 37019 37019
Misses 1763 1763
Partials 314 314 ☔ View full report in Codecov by Sentry. |
Inspired by the valkey-py client. https://github.com/valkey-io/valkey-py/blob/v6.0.2/valkey/_parsers/url_parser.py#L40 Signed-off-by: Julien Riou <[email protected]>
I've also removed the test on the init address for the valkey scheme because the goal on this line is to test the scheme, not the init address that is already covered by other tests. And added the plural form in the commit title ("Add valkey and valkeys schem schemes"). |
Inspired by the valkey-py client. https://github.com/valkey-io/valkey-py/blob/v6.0.2/valkey/_parsers/url_parser.py#L40 Signed-off-by: Julien Riou <[email protected]>
Inspired by the valkey-py client.
https://github.com/valkey-io/valkey-py/blob/v6.0.2/valkey/_parsers/url_parser.py#L40