123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- // Code generated by MockGen. DO NOT EDIT.
- // Source: internal/service/user.go
- // Package mock_service is a generated GoMock package.
- package mock_service
- import (
- context "context"
- reflect "reflect"
- model "github.com/go-nunu/nunu-layout-advanced/internal/model"
- service "github.com/go-nunu/nunu-layout-advanced/internal/service"
- gomock "github.com/golang/mock/gomock"
- )
- // MockUserService is a mock of UserService interface.
- type MockUserService struct {
- ctrl *gomock.Controller
- recorder *MockUserServiceMockRecorder
- }
- // MockUserServiceMockRecorder is the mock recorder for MockUserService.
- type MockUserServiceMockRecorder struct {
- mock *MockUserService
- }
- // NewMockUserService creates a new mock instance.
- func NewMockUserService(ctrl *gomock.Controller) *MockUserService {
- mock := &MockUserService{ctrl: ctrl}
- mock.recorder = &MockUserServiceMockRecorder{mock}
- return mock
- }
- // EXPECT returns an object that allows the caller to indicate expected use.
- func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder {
- return m.recorder
- }
- // GenerateToken mocks base method.
- func (m *MockUserService) GenerateToken(ctx context.Context, userId string) (string, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "GenerateToken", ctx, userId)
- ret0, _ := ret[0].(string)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // GenerateToken indicates an expected call of GenerateToken.
- func (mr *MockUserServiceMockRecorder) GenerateToken(ctx, userId interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateToken", reflect.TypeOf((*MockUserService)(nil).GenerateToken), ctx, userId)
- }
- // GetProfile mocks base method.
- func (m *MockUserService) GetProfile(ctx context.Context, userId string) (*model.User, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "GetProfile", ctx, userId)
- ret0, _ := ret[0].(*model.User)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // GetProfile indicates an expected call of GetProfile.
- func (mr *MockUserServiceMockRecorder) GetProfile(ctx, userId interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProfile", reflect.TypeOf((*MockUserService)(nil).GetProfile), ctx, userId)
- }
- // Login mocks base method.
- func (m *MockUserService) Login(ctx context.Context, req *service.LoginRequest) (string, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "Login", ctx, req)
- ret0, _ := ret[0].(string)
- ret1, _ := ret[1].(error)
- return ret0, ret1
- }
- // Login indicates an expected call of Login.
- func (mr *MockUserServiceMockRecorder) Login(ctx, req interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockUserService)(nil).Login), ctx, req)
- }
- // Register mocks base method.
- func (m *MockUserService) Register(ctx context.Context, req *service.RegisterRequest) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "Register", ctx, req)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // Register indicates an expected call of Register.
- func (mr *MockUserServiceMockRecorder) Register(ctx, req interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockUserService)(nil).Register), ctx, req)
- }
- // UpdateProfile mocks base method.
- func (m *MockUserService) UpdateProfile(ctx context.Context, userId string, req *service.UpdateProfileRequest) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateProfile", ctx, userId, req)
- ret0, _ := ret[0].(error)
- return ret0
- }
- // UpdateProfile indicates an expected call of UpdateProfile.
- func (mr *MockUserServiceMockRecorder) UpdateProfile(ctx, userId, req interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProfile", reflect.TypeOf((*MockUserService)(nil).UpdateProfile), ctx, userId, req)
- }
|