Documentation ¶
Overview ¶
Package mock_gitlab is a generated GoMock package.
Index ¶
- type MockGitlab
- func (m *MockGitlab) EXPECT() *MockGitlabMockRecorder
- func (m *MockGitlab) GetCurrentUser(userID string, token oauth2.Token) (*gitlab.UserInfo, error)
- func (m *MockGitlab) GetGroupHooks(user *gitlab.UserInfo, owner string) ([]*gitlab.WebhookInfo, error)
- func (m *MockGitlab) GetProject(user *gitlab.UserInfo, owner, repo string) (*gitlab0.Project, error)
- func (m *MockGitlab) GetProjectHooks(user *gitlab.UserInfo, owner, repo string) ([]*gitlab.WebhookInfo, error)
- func (m *MockGitlab) GetReviews(user *gitlab.UserInfo) ([]*gitlab0.MergeRequest, error)
- func (m *MockGitlab) GetUnreads(user *gitlab.UserInfo) ([]*gitlab0.Todo, error)
- func (m *MockGitlab) GetUserDetails(user *gitlab.UserInfo) (*gitlab0.User, error)
- func (m *MockGitlab) GetYourAssignments(user *gitlab.UserInfo) ([]*gitlab0.Issue, error)
- func (m *MockGitlab) GetYourPrs(user *gitlab.UserInfo) ([]*gitlab0.MergeRequest, error)
- func (m *MockGitlab) NewProjectHook(user *gitlab.UserInfo, projectID interface{}, ...) (*gitlab0.ProjectHook, error)
- func (m *MockGitlab) ResolveNamespaceAndProject(userInfo *gitlab.UserInfo, fullPath string, allowPrivate bool) (string, string, error)
- type MockGitlabMockRecorder
- func (mr *MockGitlabMockRecorder) GetCurrentUser(userID, token interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetGroupHooks(user, owner interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetProject(user, owner, repo interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetProjectHooks(user, owner, repo interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetReviews(user interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetUnreads(user interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetUserDetails(user interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetYourAssignments(user interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetYourPrs(user interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) NewProjectHook(user, projectID, projectHookOptions interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) ResolveNamespaceAndProject(userInfo, fullPath, allowPrivate interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitlab ¶
type MockGitlab struct {
// contains filtered or unexported fields
}
MockGitlab is a mock of Gitlab interface
func NewMockGitlab ¶
func NewMockGitlab(ctrl *gomock.Controller) *MockGitlab
NewMockGitlab creates a new mock instance
func (*MockGitlab) EXPECT ¶
func (m *MockGitlab) EXPECT() *MockGitlabMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGitlab) GetCurrentUser ¶
GetCurrentUser mocks base method
func (*MockGitlab) GetGroupHooks ¶
func (m *MockGitlab) GetGroupHooks(user *gitlab.UserInfo, owner string) ([]*gitlab.WebhookInfo, error)
GetGroupHooks mocks base method
func (*MockGitlab) GetProject ¶
func (m *MockGitlab) GetProject(user *gitlab.UserInfo, owner, repo string) (*gitlab0.Project, error)
GetProject mocks base method
func (*MockGitlab) GetProjectHooks ¶
func (m *MockGitlab) GetProjectHooks(user *gitlab.UserInfo, owner, repo string) ([]*gitlab.WebhookInfo, error)
GetProjectHooks mocks base method
func (*MockGitlab) GetReviews ¶
func (m *MockGitlab) GetReviews(user *gitlab.UserInfo) ([]*gitlab0.MergeRequest, error)
GetReviews mocks base method
func (*MockGitlab) GetUnreads ¶
GetUnreads mocks base method
func (*MockGitlab) GetUserDetails ¶
GetUserDetails mocks base method
func (*MockGitlab) GetYourAssignments ¶
GetYourAssignments mocks base method
func (*MockGitlab) GetYourPrs ¶
func (m *MockGitlab) GetYourPrs(user *gitlab.UserInfo) ([]*gitlab0.MergeRequest, error)
GetYourPrs mocks base method
func (*MockGitlab) NewProjectHook ¶
func (m *MockGitlab) NewProjectHook(user *gitlab.UserInfo, projectID interface{}, projectHookOptions *gitlab0.AddProjectHookOptions) (*gitlab0.ProjectHook, error)
NewProjectHook mocks base method
func (*MockGitlab) ResolveNamespaceAndProject ¶
func (m *MockGitlab) ResolveNamespaceAndProject(userInfo *gitlab.UserInfo, fullPath string, allowPrivate bool) (string, string, error)
ResolveNamespaceAndProject mocks base method
type MockGitlabMockRecorder ¶
type MockGitlabMockRecorder struct {
// contains filtered or unexported fields
}
MockGitlabMockRecorder is the mock recorder for MockGitlab
func (*MockGitlabMockRecorder) GetCurrentUser ¶
func (mr *MockGitlabMockRecorder) GetCurrentUser(userID, token interface{}) *gomock.Call
GetCurrentUser indicates an expected call of GetCurrentUser
func (*MockGitlabMockRecorder) GetGroupHooks ¶
func (mr *MockGitlabMockRecorder) GetGroupHooks(user, owner interface{}) *gomock.Call
GetGroupHooks indicates an expected call of GetGroupHooks
func (*MockGitlabMockRecorder) GetProject ¶
func (mr *MockGitlabMockRecorder) GetProject(user, owner, repo interface{}) *gomock.Call
GetProject indicates an expected call of GetProject
func (*MockGitlabMockRecorder) GetProjectHooks ¶
func (mr *MockGitlabMockRecorder) GetProjectHooks(user, owner, repo interface{}) *gomock.Call
GetProjectHooks indicates an expected call of GetProjectHooks
func (*MockGitlabMockRecorder) GetReviews ¶
func (mr *MockGitlabMockRecorder) GetReviews(user interface{}) *gomock.Call
GetReviews indicates an expected call of GetReviews
func (*MockGitlabMockRecorder) GetUnreads ¶
func (mr *MockGitlabMockRecorder) GetUnreads(user interface{}) *gomock.Call
GetUnreads indicates an expected call of GetUnreads
func (*MockGitlabMockRecorder) GetUserDetails ¶
func (mr *MockGitlabMockRecorder) GetUserDetails(user interface{}) *gomock.Call
GetUserDetails indicates an expected call of GetUserDetails
func (*MockGitlabMockRecorder) GetYourAssignments ¶
func (mr *MockGitlabMockRecorder) GetYourAssignments(user interface{}) *gomock.Call
GetYourAssignments indicates an expected call of GetYourAssignments
func (*MockGitlabMockRecorder) GetYourPrs ¶
func (mr *MockGitlabMockRecorder) GetYourPrs(user interface{}) *gomock.Call
GetYourPrs indicates an expected call of GetYourPrs
func (*MockGitlabMockRecorder) NewProjectHook ¶
func (mr *MockGitlabMockRecorder) NewProjectHook(user, projectID, projectHookOptions interface{}) *gomock.Call
NewProjectHook indicates an expected call of NewProjectHook
func (*MockGitlabMockRecorder) ResolveNamespaceAndProject ¶
func (mr *MockGitlabMockRecorder) ResolveNamespaceAndProject(userInfo, fullPath, allowPrivate interface{}) *gomock.Call
ResolveNamespaceAndProject indicates an expected call of ResolveNamespaceAndProject