github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/api/mocks/user.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/pyroscope-io/pyroscope/pkg/api (interfaces: UserService) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 model "github.com/pyroscope-io/pyroscope/pkg/model" 13 ) 14 15 // MockUserService is a mock of UserService interface. 16 type MockUserService struct { 17 ctrl *gomock.Controller 18 recorder *MockUserServiceMockRecorder 19 } 20 21 // MockUserServiceMockRecorder is the mock recorder for MockUserService. 22 type MockUserServiceMockRecorder struct { 23 mock *MockUserService 24 } 25 26 // NewMockUserService creates a new mock instance. 27 func NewMockUserService(ctrl *gomock.Controller) *MockUserService { 28 mock := &MockUserService{ctrl: ctrl} 29 mock.recorder = &MockUserServiceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder { 35 return m.recorder 36 } 37 38 // CreateUser mocks base method. 39 func (m *MockUserService) CreateUser(arg0 context.Context, arg1 model.CreateUserParams) (model.User, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "CreateUser", arg0, arg1) 42 ret0, _ := ret[0].(model.User) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // CreateUser indicates an expected call of CreateUser. 48 func (mr *MockUserServiceMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockUserService)(nil).CreateUser), arg0, arg1) 51 } 52 53 // DeleteUserByID mocks base method. 54 func (m *MockUserService) DeleteUserByID(arg0 context.Context, arg1 uint) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "DeleteUserByID", arg0, arg1) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // DeleteUserByID indicates an expected call of DeleteUserByID. 62 func (mr *MockUserServiceMockRecorder) DeleteUserByID(arg0, arg1 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserByID", reflect.TypeOf((*MockUserService)(nil).DeleteUserByID), arg0, arg1) 65 } 66 67 // FindUserByID mocks base method. 68 func (m *MockUserService) FindUserByID(arg0 context.Context, arg1 uint) (model.User, error) { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "FindUserByID", arg0, arg1) 71 ret0, _ := ret[0].(model.User) 72 ret1, _ := ret[1].(error) 73 return ret0, ret1 74 } 75 76 // FindUserByID indicates an expected call of FindUserByID. 77 func (mr *MockUserServiceMockRecorder) FindUserByID(arg0, arg1 interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindUserByID", reflect.TypeOf((*MockUserService)(nil).FindUserByID), arg0, arg1) 80 } 81 82 // GetAllUsers mocks base method. 83 func (m *MockUserService) GetAllUsers(arg0 context.Context) ([]model.User, error) { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "GetAllUsers", arg0) 86 ret0, _ := ret[0].([]model.User) 87 ret1, _ := ret[1].(error) 88 return ret0, ret1 89 } 90 91 // GetAllUsers indicates an expected call of GetAllUsers. 92 func (mr *MockUserServiceMockRecorder) GetAllUsers(arg0 interface{}) *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllUsers", reflect.TypeOf((*MockUserService)(nil).GetAllUsers), arg0) 95 } 96 97 // UpdateUserByID mocks base method. 98 func (m *MockUserService) UpdateUserByID(arg0 context.Context, arg1 uint, arg2 model.UpdateUserParams) (model.User, error) { 99 m.ctrl.T.Helper() 100 ret := m.ctrl.Call(m, "UpdateUserByID", arg0, arg1, arg2) 101 ret0, _ := ret[0].(model.User) 102 ret1, _ := ret[1].(error) 103 return ret0, ret1 104 } 105 106 // UpdateUserByID indicates an expected call of UpdateUserByID. 107 func (mr *MockUserServiceMockRecorder) UpdateUserByID(arg0, arg1, arg2 interface{}) *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserByID", reflect.TypeOf((*MockUserService)(nil).UpdateUserByID), arg0, arg1, arg2) 110 } 111 112 // UpdateUserPasswordByID mocks base method. 113 func (m *MockUserService) UpdateUserPasswordByID(arg0 context.Context, arg1 uint, arg2 model.UpdateUserPasswordParams) error { 114 m.ctrl.T.Helper() 115 ret := m.ctrl.Call(m, "UpdateUserPasswordByID", arg0, arg1, arg2) 116 ret0, _ := ret[0].(error) 117 return ret0 118 } 119 120 // UpdateUserPasswordByID indicates an expected call of UpdateUserPasswordByID. 121 func (mr *MockUserServiceMockRecorder) UpdateUserPasswordByID(arg0, arg1, arg2 interface{}) *gomock.Call { 122 mr.mock.ctrl.T.Helper() 123 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPasswordByID", reflect.TypeOf((*MockUserService)(nil).UpdateUserPasswordByID), arg0, arg1, arg2) 124 }