Re:Effective Go
by ASinclair on Sunday October 03, 2021 @02:25PM
(#28739329)
> regenerate them when the interface changes
You don't need to do this in Go either. Embed the interface type in your mock type. You only need to implement functions that will be called in the function under test.
You don't need to do this in Go either. Embed the interface type in your mock type. You only need to implement functions that will be called in the function under test.