Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Count(ctx context.Context, filter *user.ListFilter) (int64, error)
- func (m *MockRepository) Create(ctx context.Context, user *model.User, password string) (uint64, error)
- func (m *MockRepository) CreateResetPassword(ctx context.Context, userID uint64) (*model.UserPasswordReset, error)
- func (m *MockRepository) Delete(ctx context.Context, id uint64) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) EliminateResetPassword(ctx context.Context, userID uint64) error
- func (m *MockRepository) FetchList(ctx context.Context, filter *user.ListFilter, order *user.ListOrder, ...) ([]*model.User, error)
- func (m *MockRepository) Get(ctx context.Context, id uint64) (*model.User, error)
- func (m *MockRepository) GetByEmail(ctx context.Context, email string) (*model.User, error)
- func (m *MockRepository) GetByPassword(ctx context.Context, email, password string) (*model.User, error)
- func (m *MockRepository) GetByToken(ctx context.Context, token string) (*model.User, *model.Account, error)
- func (m *MockRepository) GetResetPassword(ctx context.Context, userID uint64, token string) (*model.UserPasswordReset, error)
- func (m *MockRepository) SetPassword(ctx context.Context, user *model.User, password string) error
- func (m *MockRepository) Update(ctx context.Context, user *model.User) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Create(ctx, user, password interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateResetPassword(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) EliminateResetPassword(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, page interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByPassword(ctx, email, password interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByToken(ctx, token interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetResetPassword(ctx, userID, token interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SetPassword(ctx, user, password interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
- type MockUsecase
- func (m *MockUsecase) Count(ctx context.Context, filter *user.ListFilter) (int64, error)
- func (m *MockUsecase) Delete(ctx context.Context, id uint64) error
- func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
- func (m *MockUsecase) FetchList(ctx context.Context, filter *user.ListFilter, order *user.ListOrder, ...) ([]*model.User, error)
- func (m *MockUsecase) Get(ctx context.Context, id uint64) (*model.User, error)
- func (m *MockUsecase) GetByEmail(ctx context.Context, email string) (*model.User, error)
- func (m *MockUsecase) GetByPassword(ctx context.Context, email, password string) (*model.User, error)
- func (m *MockUsecase) GetByToken(ctx context.Context, token string) (*model.User, *model.Account, error)
- func (m *MockUsecase) ResetPassword(ctx context.Context, email string) (*model.UserPasswordReset, *model.User, error)
- func (m *MockUsecase) SetPassword(ctx context.Context, user *model.User, password string) error
- func (m *MockUsecase) Store(ctx context.Context, user *model.User, password string) (uint64, error)
- func (m *MockUsecase) Update(ctx context.Context, user *model.User) error
- func (m *MockUsecase) UpdatePassword(ctx context.Context, token, email, password string) error
- type MockUsecaseMockRecorder
- func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, page interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) GetByPassword(ctx, email, password interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) GetByToken(ctx, token interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) ResetPassword(ctx, email interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) SetPassword(ctx, user, password interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Store(ctx, user, password interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Update(ctx, user interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) UpdatePassword(ctx, token, email, password interface{}) *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) Count ¶
func (m *MockRepository) Count(ctx context.Context, filter *user.ListFilter) (int64, error)
Count mocks base method.
func (*MockRepository) Create ¶
func (m *MockRepository) Create(ctx context.Context, user *model.User, password string) (uint64, error)
Create mocks base method.
func (*MockRepository) CreateResetPassword ¶
func (m *MockRepository) CreateResetPassword(ctx context.Context, userID uint64) (*model.UserPasswordReset, error)
CreateResetPassword mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, id uint64) error
Delete 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) EliminateResetPassword ¶
func (m *MockRepository) EliminateResetPassword(ctx context.Context, userID uint64) error
EliminateResetPassword mocks base method.
func (*MockRepository) FetchList ¶
func (m *MockRepository) FetchList(ctx context.Context, filter *user.ListFilter, order *user.ListOrder, page *repository.Pagination) ([]*model.User, error)
FetchList mocks base method.
func (*MockRepository) GetByEmail ¶
GetByEmail mocks base method.
func (*MockRepository) GetByPassword ¶
func (m *MockRepository) GetByPassword(ctx context.Context, email, password string) (*model.User, error)
GetByPassword mocks base method.
func (*MockRepository) GetByToken ¶
func (m *MockRepository) GetByToken(ctx context.Context, token string) (*model.User, *model.Account, error)
GetByToken mocks base method.
func (*MockRepository) GetResetPassword ¶
func (m *MockRepository) GetResetPassword(ctx context.Context, userID uint64, token string) (*model.UserPasswordReset, error)
GetResetPassword mocks base method.
func (*MockRepository) SetPassword ¶
SetPassword mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, user, password interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) CreateResetPassword ¶
func (mr *MockRepositoryMockRecorder) CreateResetPassword(ctx, userID interface{}) *gomock.Call
CreateResetPassword indicates an expected call of CreateResetPassword.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) EliminateResetPassword ¶
func (mr *MockRepositoryMockRecorder) EliminateResetPassword(ctx, userID interface{}) *gomock.Call
EliminateResetPassword indicates an expected call of EliminateResetPassword.
func (*MockRepositoryMockRecorder) FetchList ¶
func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, page interface{}) *gomock.Call
FetchList indicates an expected call of FetchList.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetByEmail ¶
func (mr *MockRepositoryMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
GetByEmail indicates an expected call of GetByEmail.
func (*MockRepositoryMockRecorder) GetByPassword ¶
func (mr *MockRepositoryMockRecorder) GetByPassword(ctx, email, password interface{}) *gomock.Call
GetByPassword indicates an expected call of GetByPassword.
func (*MockRepositoryMockRecorder) GetByToken ¶
func (mr *MockRepositoryMockRecorder) GetByToken(ctx, token interface{}) *gomock.Call
GetByToken indicates an expected call of GetByToken.
func (*MockRepositoryMockRecorder) GetResetPassword ¶
func (mr *MockRepositoryMockRecorder) GetResetPassword(ctx, userID, token interface{}) *gomock.Call
GetResetPassword indicates an expected call of GetResetPassword.
func (*MockRepositoryMockRecorder) SetPassword ¶
func (mr *MockRepositoryMockRecorder) SetPassword(ctx, user, password interface{}) *gomock.Call
SetPassword indicates an expected call of SetPassword.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.
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) Count ¶
func (m *MockUsecase) Count(ctx context.Context, filter *user.ListFilter) (int64, error)
Count mocks base method.
func (*MockUsecase) Delete ¶
func (m *MockUsecase) Delete(ctx context.Context, id uint64) error
Delete 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) FetchList ¶
func (m *MockUsecase) FetchList(ctx context.Context, filter *user.ListFilter, order *user.ListOrder, page *repository.Pagination) ([]*model.User, error)
FetchList mocks base method.
func (*MockUsecase) GetByEmail ¶
GetByEmail mocks base method.
func (*MockUsecase) GetByPassword ¶
func (m *MockUsecase) GetByPassword(ctx context.Context, email, password string) (*model.User, error)
GetByPassword mocks base method.
func (*MockUsecase) GetByToken ¶
func (m *MockUsecase) GetByToken(ctx context.Context, token string) (*model.User, *model.Account, error)
GetByToken mocks base method.
func (*MockUsecase) ResetPassword ¶
func (m *MockUsecase) ResetPassword(ctx context.Context, email string) (*model.UserPasswordReset, *model.User, error)
ResetPassword mocks base method.
func (*MockUsecase) SetPassword ¶
SetPassword mocks base method.
func (*MockUsecase) UpdatePassword ¶
func (m *MockUsecase) UpdatePassword(ctx context.Context, token, email, password string) error
UpdatePassword mocks base method.
type MockUsecaseMockRecorder ¶
type MockUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUsecaseMockRecorder is the mock recorder for MockUsecase.
func (*MockUsecaseMockRecorder) Count ¶
func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockUsecaseMockRecorder) Delete ¶
func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUsecaseMockRecorder) FetchList ¶
func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, page interface{}) *gomock.Call
FetchList indicates an expected call of FetchList.
func (*MockUsecaseMockRecorder) Get ¶
func (mr *MockUsecaseMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUsecaseMockRecorder) GetByEmail ¶
func (mr *MockUsecaseMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
GetByEmail indicates an expected call of GetByEmail.
func (*MockUsecaseMockRecorder) GetByPassword ¶
func (mr *MockUsecaseMockRecorder) GetByPassword(ctx, email, password interface{}) *gomock.Call
GetByPassword indicates an expected call of GetByPassword.
func (*MockUsecaseMockRecorder) GetByToken ¶
func (mr *MockUsecaseMockRecorder) GetByToken(ctx, token interface{}) *gomock.Call
GetByToken indicates an expected call of GetByToken.
func (*MockUsecaseMockRecorder) ResetPassword ¶
func (mr *MockUsecaseMockRecorder) ResetPassword(ctx, email interface{}) *gomock.Call
ResetPassword indicates an expected call of ResetPassword.
func (*MockUsecaseMockRecorder) SetPassword ¶
func (mr *MockUsecaseMockRecorder) SetPassword(ctx, user, password interface{}) *gomock.Call
SetPassword indicates an expected call of SetPassword.
func (*MockUsecaseMockRecorder) Store ¶
func (mr *MockUsecaseMockRecorder) Store(ctx, user, password interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockUsecaseMockRecorder) Update ¶
func (mr *MockUsecaseMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUsecaseMockRecorder) UpdatePassword ¶
func (mr *MockUsecaseMockRecorder) UpdatePassword(ctx, token, email, password interface{}) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.