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

Go: Implement Bitop command #3384

Merged
merged 20 commits into from
Mar 26, 2025

Conversation

niharikabhavaraju
Copy link
Collaborator

@niharikabhavaraju niharikabhavaraju commented Mar 18, 2025

Go: Implement Bitop command

Issue link

This Pull Request is linked to issue : #3397

Signed-off-by: Niharika Bhavaraju <[email protected]>
@niharikabhavaraju niharikabhavaraju requested a review from a team as a code owner March 18, 2025 05:51
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
@Yury-Fridlyand Yury-Fridlyand added the go golang wrapper label Mar 18, 2025
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

Please add changelog and fix PR description (needs a link to an issue)

Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
Signed-off-by: Niharika Bhavaraju <[email protected]>
@niharikabhavaraju niharikabhavaraju self-assigned this Mar 20, 2025
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

LGTM assuming last comments addressed

@Yury-Fridlyand Yury-Fridlyand mentioned this pull request Mar 20, 2025
8 tasks
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Collaborator

@jbrinkman jbrinkman left a comment

Choose a reason for hiding this comment

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

:shipit:

bitopkey2 := "{bitop_test}key2"
destKey := "{bitop_test}dest"

// Set initial values
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice use of comments to help clarify examples.

key2 := "{bitop_test}" + uuid.New().String()

_, err := client.Set(key1, "foo")
assert.Nil(suite.T(), err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be better to use assert.NoError() in tests rather than assert.Nil(). The NoError() check is still a Nil check under the covers, but is more descriptive from a code perspective.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@niharikabhavaraju niharikabhavaraju merged commit b095c94 into valkey-io:main Mar 26, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go golang wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants