We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using redisMock.On("Keys", "hello") fails and doesnt acknowledge the pattern sent in.
When I use "MatchedBy", it reports it as missing.
redisClient.On("Keys", mock.MatchedBy(func(input string) bool { fmt.Println(input) return true }))
When I use mock.Anything, it works.
Code for Keys doesnt send the pattern on to the Called. Below works.
func (m *ClientMock) Keys(pattern string) *redis.StringSliceCmd { if !m.hasStub("Keys") { return m.client.Keys(pattern) } return m.Called(pattern).Get(0).(*redis.StringSliceCmd) }
The text was updated successfully, but these errors were encountered:
Ah yes, this is a bug. If you have already fixed it please put in the PR.
Sorry, something went wrong.
No branches or pull requests
Using redisMock.On("Keys", "hello") fails and doesnt acknowledge the pattern sent in.
When I use "MatchedBy", it reports it as missing.
When I use mock.Anything, it works.
Code for Keys doesnt send the pattern on to the Called. Below works.
The text was updated successfully, but these errors were encountered: