-
Notifications
You must be signed in to change notification settings - Fork 28
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
Matchers are not generated for Variadic Arguments #90
Comments
@jpopadak True. The variadic args do give you a hard time these days :-/. Thanks for reporting it. It's a bug. It looks pretty straight forward, so I'll see if I can fix it soon. |
@jpopadak Can you please try with the latest on |
@jpopadak Did you get a chance to check this? |
I will try it out again sometime this week. Sorry about that. |
So matchers are being generated for it now 🎉 However, they are not being used to match calls for variadic arguments. I would consider that another / different bug though. |
@jpopadak could you be more specific? Basically provide a use case where is doesn't work for you? The current expected behavior is that you need to provide as many matchers as you expect parameters to be passed to your mock. Only then will it match that call. |
@jpopadak I'm going to close this issue as per your comment above. However, could open a new issue for what you called a "different bug" above. Thank you. |
Generating mocks for an Interface which has Variadic functions does not create matchers for the variadic arguments.
Test File
//go:generate -m github.com/org/project/package/name Asdf
Source File
The text was updated successfully, but these errors were encountered: