Documentation ¶
Overview ¶
Package mock_users is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CreateUser(user *models.User, claUser *user.CLAUser) (*models.User, error)
- func (m *MockService) Delete(userID string, claUser *user.CLAUser) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetUser(userID string) (*models.User, error)
- func (m *MockService) GetUserByEmail(userEmail string) (*models.User, error)
- func (m *MockService) GetUserByGitHubID(gitHubID string) (*models.User, error)
- func (m *MockService) GetUserByGitHubUsername(gitlabUsername string) (*models.User, error)
- func (m *MockService) GetUserByGitLabUsername(gitlabUsername string) (*models.User, error)
- func (m *MockService) GetUserByGitlabID(gitHubID int) (*models.User, error)
- func (m *MockService) GetUserByLFUserName(lfUserName string) (*models.User, error)
- func (m *MockService) GetUserByUserName(userName string, fullMatch bool) (*models.User, error)
- func (m *MockService) Save(user *models.UserUpdate, claUser *user.CLAUser) (*models.User, error)
- func (m *MockService) SearchUsers(field, searchTerm string, fullMatch bool) (*models.Users, error)
- func (m *MockService) UpdateUser(userID string, updates map[string]interface{}) (*models.User, error)
- func (m *MockService) UpdateUserCompanyID(userID, companyID, note string) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CreateUser(user, claUser interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Delete(userID, claUser interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUser(userID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByEmail(userEmail interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByGitHubID(gitHubID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByGitHubUsername(gitlabUsername interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByGitLabUsername(gitlabUsername interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByGitlabID(gitHubID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByLFUserName(lfUserName interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUserByUserName(userName, fullMatch interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Save(user, claUser interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) SearchUsers(field, searchTerm, fullMatch interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateUser(userID, updates interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateUserCompanyID(userID, companyID, note interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CreateUser ¶
CreateUser mocks base method.
func (*MockService) Delete ¶
func (m *MockService) Delete(userID string, claUser *user.CLAUser) error
Delete mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetUser ¶
func (m *MockService) GetUser(userID string) (*models.User, error)
GetUser mocks base method.
func (*MockService) GetUserByEmail ¶
func (m *MockService) GetUserByEmail(userEmail string) (*models.User, error)
GetUserByEmail mocks base method.
func (*MockService) GetUserByGitHubID ¶
func (m *MockService) GetUserByGitHubID(gitHubID string) (*models.User, error)
GetUserByGitHubID mocks base method.
func (*MockService) GetUserByGitHubUsername ¶
func (m *MockService) GetUserByGitHubUsername(gitlabUsername string) (*models.User, error)
GetUserByGitHubUsername mocks base method.
func (*MockService) GetUserByGitLabUsername ¶
func (m *MockService) GetUserByGitLabUsername(gitlabUsername string) (*models.User, error)
GetUserByGitLabUsername mocks base method.
func (*MockService) GetUserByGitlabID ¶
func (m *MockService) GetUserByGitlabID(gitHubID int) (*models.User, error)
GetUserByGitlabID mocks base method.
func (*MockService) GetUserByLFUserName ¶
func (m *MockService) GetUserByLFUserName(lfUserName string) (*models.User, error)
GetUserByLFUserName mocks base method.
func (*MockService) GetUserByUserName ¶
GetUserByUserName mocks base method.
func (*MockService) Save ¶
func (m *MockService) Save(user *models.UserUpdate, claUser *user.CLAUser) (*models.User, error)
Save mocks base method.
func (*MockService) SearchUsers ¶
SearchUsers mocks base method.
func (*MockService) UpdateUser ¶
func (m *MockService) UpdateUser(userID string, updates map[string]interface{}) (*models.User, error)
UpdateUser mocks base method.
func (*MockService) UpdateUserCompanyID ¶
func (m *MockService) UpdateUserCompanyID(userID, companyID, note string) error
UpdateUserCompanyID mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CreateUser ¶
func (mr *MockServiceMockRecorder) CreateUser(user, claUser interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockServiceMockRecorder) Delete ¶
func (mr *MockServiceMockRecorder) Delete(userID, claUser interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockServiceMockRecorder) GetUser ¶
func (mr *MockServiceMockRecorder) GetUser(userID interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockServiceMockRecorder) GetUserByEmail ¶
func (mr *MockServiceMockRecorder) GetUserByEmail(userEmail interface{}) *gomock.Call
GetUserByEmail indicates an expected call of GetUserByEmail.
func (*MockServiceMockRecorder) GetUserByGitHubID ¶
func (mr *MockServiceMockRecorder) GetUserByGitHubID(gitHubID interface{}) *gomock.Call
GetUserByGitHubID indicates an expected call of GetUserByGitHubID.
func (*MockServiceMockRecorder) GetUserByGitHubUsername ¶
func (mr *MockServiceMockRecorder) GetUserByGitHubUsername(gitlabUsername interface{}) *gomock.Call
GetUserByGitHubUsername indicates an expected call of GetUserByGitHubUsername.
func (*MockServiceMockRecorder) GetUserByGitLabUsername ¶
func (mr *MockServiceMockRecorder) GetUserByGitLabUsername(gitlabUsername interface{}) *gomock.Call
GetUserByGitLabUsername indicates an expected call of GetUserByGitLabUsername.
func (*MockServiceMockRecorder) GetUserByGitlabID ¶
func (mr *MockServiceMockRecorder) GetUserByGitlabID(gitHubID interface{}) *gomock.Call
GetUserByGitlabID indicates an expected call of GetUserByGitlabID.
func (*MockServiceMockRecorder) GetUserByLFUserName ¶
func (mr *MockServiceMockRecorder) GetUserByLFUserName(lfUserName interface{}) *gomock.Call
GetUserByLFUserName indicates an expected call of GetUserByLFUserName.
func (*MockServiceMockRecorder) GetUserByUserName ¶
func (mr *MockServiceMockRecorder) GetUserByUserName(userName, fullMatch interface{}) *gomock.Call
GetUserByUserName indicates an expected call of GetUserByUserName.
func (*MockServiceMockRecorder) Save ¶
func (mr *MockServiceMockRecorder) Save(user, claUser interface{}) *gomock.Call
Save indicates an expected call of Save.
func (*MockServiceMockRecorder) SearchUsers ¶
func (mr *MockServiceMockRecorder) SearchUsers(field, searchTerm, fullMatch interface{}) *gomock.Call
SearchUsers indicates an expected call of SearchUsers.
func (*MockServiceMockRecorder) UpdateUser ¶
func (mr *MockServiceMockRecorder) UpdateUser(userID, updates interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
func (*MockServiceMockRecorder) UpdateUserCompanyID ¶
func (mr *MockServiceMockRecorder) UpdateUserCompanyID(userID, companyID, note interface{}) *gomock.Call
UpdateUserCompanyID indicates an expected call of UpdateUserCompanyID.