Documentation ¶
Overview ¶
Package mockuserrepository is a generated GoMock package.
Index ¶
- type MockUserRepository
- func (m *MockUserRepository) Create(user *values.UserDBValue) *errorhandler.Response
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) FindOneByEmail(email string) (*values.UserDBValue, *errorhandler.Response)
- func (m *MockUserRepository) FindOneByID(id string) (*values.UserDBValue, *errorhandler.Response)
- func (m *MockUserRepository) FindOneByLogin(login string) (*values.UserDBValue, *errorhandler.Response)
- func (m *MockUserRepository) FindOneByUsername(username string) (*values.UserDBValue, *errorhandler.Response)
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) Create(user interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindOneByEmail(email interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindOneByID(id interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindOneByLogin(login interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindOneByUsername(username interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Create ¶
func (m *MockUserRepository) Create(user *values.UserDBValue) *errorhandler.Response
Create mocks base method.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) FindOneByEmail ¶
func (m *MockUserRepository) FindOneByEmail(email string) (*values.UserDBValue, *errorhandler.Response)
FindOneByEmail mocks base method.
func (*MockUserRepository) FindOneByID ¶
func (m *MockUserRepository) FindOneByID(id string) (*values.UserDBValue, *errorhandler.Response)
FindOneByID mocks base method.
func (*MockUserRepository) FindOneByLogin ¶
func (m *MockUserRepository) FindOneByLogin(login string) (*values.UserDBValue, *errorhandler.Response)
FindOneByLogin mocks base method.
func (*MockUserRepository) FindOneByUsername ¶
func (m *MockUserRepository) FindOneByUsername(username string) (*values.UserDBValue, *errorhandler.Response)
FindOneByUsername 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(user interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserRepositoryMockRecorder) FindOneByEmail ¶
func (mr *MockUserRepositoryMockRecorder) FindOneByEmail(email interface{}) *gomock.Call
FindOneByEmail indicates an expected call of FindOneByEmail.
func (*MockUserRepositoryMockRecorder) FindOneByID ¶
func (mr *MockUserRepositoryMockRecorder) FindOneByID(id interface{}) *gomock.Call
FindOneByID indicates an expected call of FindOneByID.
func (*MockUserRepositoryMockRecorder) FindOneByLogin ¶
func (mr *MockUserRepositoryMockRecorder) FindOneByLogin(login interface{}) *gomock.Call
FindOneByLogin indicates an expected call of FindOneByLogin.
func (*MockUserRepositoryMockRecorder) FindOneByUsername ¶
func (mr *MockUserRepositoryMockRecorder) FindOneByUsername(username interface{}) *gomock.Call
FindOneByUsername indicates an expected call of FindOneByUsername.