From 3a3d52cb40d89c2bd6a1ec473dffba1d6ce16971 Mon Sep 17 00:00:00 2001 From: Evan Schwander Date: Mon, 14 Feb 2022 13:01:10 -0800 Subject: [PATCH] Generating mocks --- zendesk/mock/client.go | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/zendesk/mock/client.go b/zendesk/mock/client.go index 196c5e4e..4c1b99e2 100644 --- a/zendesk/mock/client.go +++ b/zendesk/mock/client.go @@ -155,6 +155,21 @@ func (mr *ClientMockRecorder) CreateMacro(arg0, arg1 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMacro", reflect.TypeOf((*Client)(nil).CreateMacro), arg0, arg1) } +// CreateOrUpdateUser mocks base method. +func (m *Client) CreateOrUpdateUser(arg0 context.Context, arg1 zendesk.User) (zendesk.User, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrUpdateUser", arg0, arg1) + ret0, _ := ret[0].(zendesk.User) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrUpdateUser indicates an expected call of CreateOrUpdateUser. +func (mr *ClientMockRecorder) CreateOrUpdateUser(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateUser", reflect.TypeOf((*Client)(nil).CreateOrUpdateUser), arg0, arg1) +} + // CreateOrganization mocks base method. func (m *Client) CreateOrganization(arg0 context.Context, arg1 zendesk.Organization) (zendesk.Organization, error) { m.ctrl.T.Helper() @@ -284,15 +299,6 @@ func (m *Client) CreateUser(arg0 context.Context, arg1 zendesk.User) (zendesk.Us return ret0, ret1 } -// CreateOrUpdateUser mocks base method. -func (m *Client) CreateOrUpdateUser(arg0 context.Context, arg1 zendesk.User) (zendesk.User, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateOrUpdateUser", arg0, arg1) - ret0, _ := ret[0].(zendesk.User) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - // CreateUser indicates an expected call of CreateUser. func (mr *ClientMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper()