Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockCodeRepository
- type MockCodeRepositoryMockRecorder
- type MockUserRepository
- func (m *MockUserRepository) Create(ctx context.Context, user domain.User) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) FindByEmail(ctx context.Context, email string) (domain.User, error)
- func (m *MockUserRepository) FindById(ctx context.Context, id int64) (domain.User, error)
- func (m *MockUserRepository) FindByPhone(ctx context.Context, phone string) (domain.User, error)
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) Create(ctx, user any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindByEmail(ctx, email any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindById(ctx, id any) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindByPhone(ctx, phone any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCodeRepository ¶
type MockCodeRepository struct {
// contains filtered or unexported fields
}
MockCodeRepository is a mock of CodeRepository interface.
func NewMockCodeRepository ¶
func NewMockCodeRepository(ctrl *gomock.Controller) *MockCodeRepository
NewMockCodeRepository creates a new mock instance.
func (*MockCodeRepository) EXPECT ¶
func (m *MockCodeRepository) EXPECT() *MockCodeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCodeRepositoryMockRecorder ¶
type MockCodeRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCodeRepositoryMockRecorder is the mock recorder for MockCodeRepository.
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) FindByEmail ¶
FindByEmail mocks base method.
func (*MockUserRepository) FindByPhone ¶
FindByPhone mocks base method.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) Create ¶
func (mr *MockUserRepositoryMockRecorder) Create(ctx, user any) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepositoryMockRecorder) FindByEmail ¶
func (mr *MockUserRepositoryMockRecorder) FindByEmail(ctx, email any) *gomock.Call
FindByEmail indicates an expected call of FindByEmail.
func (*MockUserRepositoryMockRecorder) FindById ¶
func (mr *MockUserRepositoryMockRecorder) FindById(ctx, id any) *gomock.Call
FindById indicates an expected call of FindById.
func (*MockUserRepositoryMockRecorder) FindByPhone ¶
func (mr *MockUserRepositoryMockRecorder) FindByPhone(ctx, phone any) *gomock.Call
FindByPhone indicates an expected call of FindByPhone.