Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
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) CreateIfNotExist ¶
func (m *MockRepository) CreateIfNotExist(user *model.User) error
CreateIfNotExist 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) GetByUsername ¶
func (m *MockRepository) GetByUsername(username string) (*model.User, error)
GetByUsername mocks base method
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) CreateIfNotExist ¶
func (mr *MockRepositoryMockRecorder) CreateIfNotExist(user interface{}) *gomock.Call
CreateIfNotExist indicates an expected call of CreateIfNotExist
func (*MockRepositoryMockRecorder) GetByUsername ¶
func (mr *MockRepositoryMockRecorder) GetByUsername(username interface{}) *gomock.Call
GetByUsername indicates an expected call of GetByUsername
Click to show internal directories.
Click to hide internal directories.