From abc7001e06890b39de5a1a205fcc3e7b0672b247 Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Thu, 7 Sep 2023 14:06:11 +0000 Subject: [PATCH] Make generate --- activation/nipost_mocks.go | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/activation/nipost_mocks.go b/activation/nipost_mocks.go index d3c7722b1c..cdfce1f420 100644 --- a/activation/nipost_mocks.go +++ b/activation/nipost_mocks.go @@ -44,9 +44,33 @@ func (m *MockPoetProvingServiceClient) Address() string { } // Address indicates an expected call of Address. -func (mr *MockPoetProvingServiceClientMockRecorder) Address() *gomock.Call { +func (mr *MockPoetProvingServiceClientMockRecorder) Address() *PoetProvingServiceClientAddressCall { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).Address)) + call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockPoetProvingServiceClient)(nil).Address)) + return &PoetProvingServiceClientAddressCall{Call: call} +} + +// PoetProvingServiceClientAddressCall wrap *gomock.Call +type PoetProvingServiceClientAddressCall struct { + *gomock.Call +} + +// Return rewrite *gomock.Call.Return +func (c *PoetProvingServiceClientAddressCall) Return(arg0 string) *PoetProvingServiceClientAddressCall { + c.Call = c.Call.Return(arg0) + return c +} + +// Do rewrite *gomock.Call.Do +func (c *PoetProvingServiceClientAddressCall) Do(f func() string) *PoetProvingServiceClientAddressCall { + c.Call = c.Call.Do(f) + return c +} + +// DoAndReturn rewrite *gomock.Call.DoAndReturn +func (c *PoetProvingServiceClientAddressCall) DoAndReturn(f func() string) *PoetProvingServiceClientAddressCall { + c.Call = c.Call.DoAndReturn(f) + return c } // PoetServiceID mocks base method.