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
This is a regression sometime since SHA a43d734f241595. Not sure exactly when.
The following interface will generate a mock that doesn't compile:
type MyInterface interface { WriteItems(uuid string, values ...string) error }
The old "working" code generated code that probably wasn't mockable, but it wasn't blocking.
This generates:
func (_m *MyInterface) WriteItems(uuid string, values ...string) error { ret := _m.Called(uuid, values) var r0 error if rf, ok := ret.Get(0).(func(string, ...string) error); ok { r0 = rf(uuid, values) } else { r0 = ret.Error(0) } return r0 }
Which results in:
mocks/MyInterface.go:14: cannot use values (type []string) as type string in argument to rf
I think Line 14 needs to be:
r0 = rf(uuid, values...)
The text was updated successfully, but these errors were encountered:
Fix for Broken ... params (Issue vektra#38)
5a49587
Fix PR here
Sorry, something went wrong.
Merge pull request #39 from shawnburke/master
6b75e7d
Fix for Broken ... params (Issue #38)
Fix merged! Thanks!
No branches or pull requests
This is a regression sometime since SHA a43d734f241595. Not sure exactly when.
The following interface will generate a mock that doesn't compile:
The old "working" code generated code that probably wasn't mockable, but it wasn't blocking.
This generates:
Which results in:
I think Line 14 needs to be:
The text was updated successfully, but these errors were encountered: