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
Copied this interface into my code and tried to generate a mock, failed with an error:
type Context interface { Deadline() (deadline time.Time, ok bool) Done() <-chan struct{} Err() error Value(key interface{}) interface{} }
$ mockery -name=Context Generating mock for: Context Unable to generated mock for 'Context': unable to handle type: &ast.StructType{Struct:1473, Fields:(*ast.FieldList)(0x8206f8ff0), Incomplete:false}
The text was updated successfully, but these errors were encountered:
When I remove the Done() <-chan struct{} the mock generates successfully.
Done() <-chan struct{}
Sorry, something went wrong.
Temporary workaround - adding the following to the generated mock after commenting out the culprit method (since I'm not using it in my code):
func (_m *MockContext) Done() <-chan struct{} { return nil }
Fixed!
No branches or pull requests
Copied this interface into my code and tried to generate a mock, failed with an error:
The text was updated successfully, but these errors were encountered: