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

feat(url): Add valkey and valkeys schemes #21

Merged
merged 1 commit into from
Dec 29, 2024
Merged

Conversation

jouir
Copy link
Contributor

@jouir jouir commented Dec 29, 2024

@jouir
Copy link
Contributor Author

jouir commented Dec 29, 2024

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be valkeys?

Copy link
Contributor Author

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-commenter
Copy link

codecov-commenter commented Dec 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.68%. Comparing base (784282a) to head (5233829).

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.
📢 Have feedback on the report? Share it here.

@jouir
Copy link
Contributor Author

jouir commented Dec 29, 2024

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").

@jouir jouir changed the title feat(url): Add valkey and valkeys scheme feat(url): Add valkey and valkeys schemes Dec 29, 2024
@rueian rueian merged commit c4248d4 into valkey-io:main Dec 29, 2024
29 checks passed
rueian pushed a commit that referenced this pull request Dec 29, 2024
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.

3 participants