You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
When generating a mock for ReadWriteCloser, the mock implementation will declare Close() error twice. The mock therefore fails to compile: (*MockReadWriteCloser).Close redeclared in this block
Expected behavior
The overlapping method should only be implemented once.
Actual behavior
Since Go 1.14 embedded interfaces can have overlapping methods, as the
io.Closerin the following example:When generating a mock for
ReadWriteCloser, the mock implementation will declareClose() errortwice. The mock therefore fails to compile:(*MockReadWriteCloser).Close redeclared in this blockExpected behavior
The overlapping method should only be implemented once.
To Reproduce Steps to reproduce the behavior
mockgen -source=xxx.goAdditional Information