Description
The mock_handler.go mock file, that is auto-generated by mockery, seems to be trying to emulate a function type "handler" in mc_storage.go; and is not an actual interface:
type handler func(req *gomemcached.MCRequest, s *storage) *gomemcached.MCResponse
Hence it breaks any subsequent runs of mockery due to an undefined parameter type error for the datatype "storage" in the method signatures defined in the mock_handler.go file.
E.g: func (_m *handler) Execute(req *gomemcached.MCRequest, s *storage) *gomemcached.MCResponse
The current workaround is to delete the original mock_handler.go file and run mockery - it will regenerate the exact same file afresh, along with updating the other mocks based on the new changes made.
However we will probably have to modify our .mockery.yaml file to prevent its generation entirely.