From 23b002dc72fc548c857249656ef05f9d329a66b1 Mon Sep 17 00:00:00 2001 From: yangbing Date: Mon, 4 Jan 2021 16:04:02 +0800 Subject: [PATCH] mock data --- test/mock/iface/interface.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/mock/iface/interface.go b/test/mock/iface/interface.go index 112eb28..12c9df2 100644 --- a/test/mock/iface/interface.go +++ b/test/mock/iface/interface.go @@ -305,6 +305,18 @@ func (mr *MockIControllerMockRecorder) HandlePanic(v, debug interface{}) *gomock return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandlePanic", reflect.TypeOf((*MockIController)(nil).HandlePanic), v, debug) } +// Response mocks base method. +func (m *MockIController) Response(v interface{}, err error) { + m.ctrl.T.Helper() + m.ctrl.Call(m, "Response", v, err) +} + +// Response indicates an expected call of Response. +func (mr *MockIControllerMockRecorder) Response(v, err interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Response", reflect.TypeOf((*MockIController)(nil).Response), v, err) +} + // MockIErrorController is a mock of IErrorController interface. type MockIErrorController struct { ctrl *gomock.Controller