172 lines
6.2 KiB
Go
172 lines
6.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./pkg/domain/repository/account_uid.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./pkg/domain/repository/account_uid.go -destination=./pkg/mock/repository/account_uid.go -package=mock
|
|
//
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
entity "app-cloudep-member-server/pkg/domain/entity"
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
mongo "go.mongodb.org/mongo-driver/mongo"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockAccountUIDRepository is a mock of AccountUIDRepository interface.
|
|
type MockAccountUIDRepository struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAccountUIDRepositoryMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockAccountUIDRepositoryMockRecorder is the mock recorder for MockAccountUIDRepository.
|
|
type MockAccountUIDRepositoryMockRecorder struct {
|
|
mock *MockAccountUIDRepository
|
|
}
|
|
|
|
// NewMockAccountUIDRepository creates a new mock instance.
|
|
func NewMockAccountUIDRepository(ctrl *gomock.Controller) *MockAccountUIDRepository {
|
|
mock := &MockAccountUIDRepository{ctrl: ctrl}
|
|
mock.recorder = &MockAccountUIDRepositoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAccountUIDRepository) EXPECT() *MockAccountUIDRepositoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Delete mocks base method.
|
|
func (m *MockAccountUIDRepository) Delete(ctx context.Context, id string) (int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Delete", ctx, id)
|
|
ret0, _ := ret[0].(int64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Delete indicates an expected call of Delete.
|
|
func (mr *MockAccountUIDRepositoryMockRecorder) Delete(ctx, id any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAccountUIDRepository)(nil).Delete), ctx, id)
|
|
}
|
|
|
|
// FindOne mocks base method.
|
|
func (m *MockAccountUIDRepository) FindOne(ctx context.Context, id string) (*entity.AccountUID, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindOne", ctx, id)
|
|
ret0, _ := ret[0].(*entity.AccountUID)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindOne indicates an expected call of FindOne.
|
|
func (mr *MockAccountUIDRepositoryMockRecorder) FindOne(ctx, id any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockAccountUIDRepository)(nil).FindOne), ctx, id)
|
|
}
|
|
|
|
// FindUIDByLoginID mocks base method.
|
|
func (m *MockAccountUIDRepository) FindUIDByLoginID(ctx context.Context, loginID string) (*entity.AccountUID, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindUIDByLoginID", ctx, loginID)
|
|
ret0, _ := ret[0].(*entity.AccountUID)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindUIDByLoginID indicates an expected call of FindUIDByLoginID.
|
|
func (mr *MockAccountUIDRepositoryMockRecorder) FindUIDByLoginID(ctx, loginID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindUIDByLoginID", reflect.TypeOf((*MockAccountUIDRepository)(nil).FindUIDByLoginID), ctx, loginID)
|
|
}
|
|
|
|
// Index20241226001UP mocks base method.
|
|
func (m *MockAccountUIDRepository) Index20241226001UP(ctx context.Context) (*mongo.Cursor, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Index20241226001UP", ctx)
|
|
ret0, _ := ret[0].(*mongo.Cursor)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Index20241226001UP indicates an expected call of Index20241226001UP.
|
|
func (mr *MockAccountUIDRepositoryMockRecorder) Index20241226001UP(ctx any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Index20241226001UP", reflect.TypeOf((*MockAccountUIDRepository)(nil).Index20241226001UP), ctx)
|
|
}
|
|
|
|
// Insert mocks base method.
|
|
func (m *MockAccountUIDRepository) Insert(ctx context.Context, data *entity.AccountUID) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Insert", ctx, data)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Insert indicates an expected call of Insert.
|
|
func (mr *MockAccountUIDRepositoryMockRecorder) Insert(ctx, data any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockAccountUIDRepository)(nil).Insert), ctx, data)
|
|
}
|
|
|
|
// Update mocks base method.
|
|
func (m *MockAccountUIDRepository) Update(ctx context.Context, data *entity.AccountUID) (*mongo.UpdateResult, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Update", ctx, data)
|
|
ret0, _ := ret[0].(*mongo.UpdateResult)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Update indicates an expected call of Update.
|
|
func (mr *MockAccountUIDRepositoryMockRecorder) Update(ctx, data any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAccountUIDRepository)(nil).Update), ctx, data)
|
|
}
|
|
|
|
// MockAccountUIDIndexUP is a mock of AccountUIDIndexUP interface.
|
|
type MockAccountUIDIndexUP struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAccountUIDIndexUPMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockAccountUIDIndexUPMockRecorder is the mock recorder for MockAccountUIDIndexUP.
|
|
type MockAccountUIDIndexUPMockRecorder struct {
|
|
mock *MockAccountUIDIndexUP
|
|
}
|
|
|
|
// NewMockAccountUIDIndexUP creates a new mock instance.
|
|
func NewMockAccountUIDIndexUP(ctrl *gomock.Controller) *MockAccountUIDIndexUP {
|
|
mock := &MockAccountUIDIndexUP{ctrl: ctrl}
|
|
mock.recorder = &MockAccountUIDIndexUPMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAccountUIDIndexUP) EXPECT() *MockAccountUIDIndexUPMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Index20241226001UP mocks base method.
|
|
func (m *MockAccountUIDIndexUP) Index20241226001UP(ctx context.Context) (*mongo.Cursor, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Index20241226001UP", ctx)
|
|
ret0, _ := ret[0].(*mongo.Cursor)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Index20241226001UP indicates an expected call of Index20241226001UP.
|
|
func (mr *MockAccountUIDIndexUPMockRecorder) Index20241226001UP(ctx any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Index20241226001UP", reflect.TypeOf((*MockAccountUIDIndexUP)(nil).Index20241226001UP), ctx)
|
|
}
|