-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to mock variadic function with function argument #1006
Comments
I think this is a gotcha pitfall. Although you see this message: let me explain: so if you change line 34, from
|
Sure, that will make the test pass @proclaim but it also then doesn't assert that I think the main problem is that the |
the go said: ...
//
// Func values are deeply equal if both are nil; otherwise they are not deeply equal.
...
func DeepEqual(x, y interface{}) bool { |
and mock use the function to test if they are equal |
I have a function with this signature:
Where
MsgOption
is a function-type:The mock:
Turning it
On
:And the assert:
Result:
They look the same to me. What am I missing here? 🤔
Full output
The text was updated successfully, but these errors were encountered: