Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Atomic(ctx context.Context, opt *sql.TxOptions, repo func(users.Repository) error) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetUserByEmail(arg0 context.Context, arg1 string) (entities.User, error)
- func (m *MockRepository) GetUserByID(arg0 context.Context, arg1 int64, arg2 ...entities.LockingOpt) (entities.User, error)
- func (m *MockRepository) IsUserExist(ctx context.Context, email string) bool
- func (m *MockRepository) SaveNewUser(arg0 context.Context, arg1 entities.User) (int64, error)
- func (m *MockRepository) UpdateUserByID(arg0 context.Context, arg1 entities.UpdateUser) error
- func (m *MockRepository) UpdateUserStatusByID(arg0 context.Context, arg1 entities.UpdateUserStatus) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Atomic(ctx, opt, repo any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetUserByEmail(arg0, arg1 any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetUserByID(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) IsUserExist(ctx, email any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SaveNewUser(arg0, arg1 any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateUserByID(arg0, arg1 any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateUserStatusByID(arg0, arg1 any) *gomock.Call
- type MockUsecase
- func (m *MockUsecase) Create(ctx context.Context, payload dtos.CreateUserRequest) (int64, error)
- func (m *MockUsecase) Detail(ctx context.Context, id int64) (dtos.UserDetailResponse, error)
- func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
- func (m *MockUsecase) Login(ctx context.Context, request dtos.UserLoginRequest) (dtos.UserLoginResponse, error)
- func (m *MockUsecase) PartialUpdate(ctx context.Context, data dtos.UpdateUserRequest) error
- func (m *MockUsecase) UpdateStatus(ctx context.Context, req dtos.UpdateUserStatusRequest) error
- type MockUsecaseMockRecorder
- func (mr *MockUsecaseMockRecorder) Create(ctx, payload any) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Detail(ctx, id any) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Login(ctx, request any) *gomock.Call
- func (mr *MockUsecaseMockRecorder) PartialUpdate(ctx, data any) *gomock.Call
- func (mr *MockUsecaseMockRecorder) UpdateStatus(ctx, req any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Atomic ¶
func (m *MockRepository) Atomic(ctx context.Context, opt *sql.TxOptions, repo func(users.Repository) error) error
Atomic mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetUserByEmail ¶ added in v0.0.3
GetUserByEmail mocks base method.
func (*MockRepository) GetUserByID ¶
func (m *MockRepository) GetUserByID(arg0 context.Context, arg1 int64, arg2 ...entities.LockingOpt) (entities.User, error)
GetUserByID mocks base method.
func (*MockRepository) IsUserExist ¶ added in v0.0.3
func (m *MockRepository) IsUserExist(ctx context.Context, email string) bool
IsUserExist mocks base method.
func (*MockRepository) SaveNewUser ¶
SaveNewUser mocks base method.
func (*MockRepository) UpdateUserByID ¶
func (m *MockRepository) UpdateUserByID(arg0 context.Context, arg1 entities.UpdateUser) error
UpdateUserByID mocks base method.
func (*MockRepository) UpdateUserStatusByID ¶
func (m *MockRepository) UpdateUserStatusByID(arg0 context.Context, arg1 entities.UpdateUserStatus) error
UpdateUserStatusByID mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Atomic ¶
func (mr *MockRepositoryMockRecorder) Atomic(ctx, opt, repo any) *gomock.Call
Atomic indicates an expected call of Atomic.
func (*MockRepositoryMockRecorder) GetUserByEmail ¶ added in v0.0.3
func (mr *MockRepositoryMockRecorder) GetUserByEmail(arg0, arg1 any) *gomock.Call
GetUserByEmail indicates an expected call of GetUserByEmail.
func (*MockRepositoryMockRecorder) GetUserByID ¶
func (mr *MockRepositoryMockRecorder) GetUserByID(arg0, arg1 any, arg2 ...any) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockRepositoryMockRecorder) IsUserExist ¶ added in v0.0.3
func (mr *MockRepositoryMockRecorder) IsUserExist(ctx, email any) *gomock.Call
IsUserExist indicates an expected call of IsUserExist.
func (*MockRepositoryMockRecorder) SaveNewUser ¶
func (mr *MockRepositoryMockRecorder) SaveNewUser(arg0, arg1 any) *gomock.Call
SaveNewUser indicates an expected call of SaveNewUser.
func (*MockRepositoryMockRecorder) UpdateUserByID ¶
func (mr *MockRepositoryMockRecorder) UpdateUserByID(arg0, arg1 any) *gomock.Call
UpdateUserByID indicates an expected call of UpdateUserByID.
func (*MockRepositoryMockRecorder) UpdateUserStatusByID ¶
func (mr *MockRepositoryMockRecorder) UpdateUserStatusByID(arg0, arg1 any) *gomock.Call
UpdateUserStatusByID indicates an expected call of UpdateUserStatusByID.
type MockUsecase ¶
type MockUsecase struct {
// contains filtered or unexported fields
}
MockUsecase is a mock of Usecase interface.
func NewMockUsecase ¶
func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase
NewMockUsecase creates a new mock instance.
func (*MockUsecase) Create ¶ added in v0.0.3
func (m *MockUsecase) Create(ctx context.Context, payload dtos.CreateUserRequest) (int64, error)
Create mocks base method.
func (*MockUsecase) Detail ¶ added in v0.0.3
func (m *MockUsecase) Detail(ctx context.Context, id int64) (dtos.UserDetailResponse, error)
Detail mocks base method.
func (*MockUsecase) EXPECT ¶
func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsecase) Login ¶ added in v0.0.3
func (m *MockUsecase) Login(ctx context.Context, request dtos.UserLoginRequest) (dtos.UserLoginResponse, error)
Login mocks base method.
func (*MockUsecase) PartialUpdate ¶ added in v0.0.3
func (m *MockUsecase) PartialUpdate(ctx context.Context, data dtos.UpdateUserRequest) error
PartialUpdate mocks base method.
func (*MockUsecase) UpdateStatus ¶ added in v0.0.3
func (m *MockUsecase) UpdateStatus(ctx context.Context, req dtos.UpdateUserStatusRequest) error
UpdateStatus mocks base method.
type MockUsecaseMockRecorder ¶
type MockUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUsecaseMockRecorder is the mock recorder for MockUsecase.
func (*MockUsecaseMockRecorder) Create ¶ added in v0.0.3
func (mr *MockUsecaseMockRecorder) Create(ctx, payload any) *gomock.Call
Create indicates an expected call of Create.
func (*MockUsecaseMockRecorder) Detail ¶ added in v0.0.3
func (mr *MockUsecaseMockRecorder) Detail(ctx, id any) *gomock.Call
Detail indicates an expected call of Detail.
func (*MockUsecaseMockRecorder) Login ¶ added in v0.0.3
func (mr *MockUsecaseMockRecorder) Login(ctx, request any) *gomock.Call
Login indicates an expected call of Login.
func (*MockUsecaseMockRecorder) PartialUpdate ¶ added in v0.0.3
func (mr *MockUsecaseMockRecorder) PartialUpdate(ctx, data any) *gomock.Call
PartialUpdate indicates an expected call of PartialUpdate.
func (*MockUsecaseMockRecorder) UpdateStatus ¶ added in v0.0.3
func (mr *MockUsecaseMockRecorder) UpdateStatus(ctx, req any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.