Documentation ¶
Index ¶
- type GitLabClient
- func (_m *GitLabClient) EXPECT() *GitLabClient_Expecter
- func (_m *GitLabClient) GetMergeRequestApprovalsConfiguration(projectID int, mergeRequestID int) (*gitlab.MergeRequestApprovals, *gitlab.Response, error)
- func (_m *GitLabClient) ListGroupProjects(groupID int, options *gitlab.ListGroupProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)
- func (_m *GitLabClient) ListProjectMergeRequests(projectID int, options *gitlab.ListProjectMergeRequestsOptions) ([]*gitlab.MergeRequest, *gitlab.Response, error)
- func (_m *GitLabClient) ListSubGroups(groupID int, opt *gitlab.ListSubGroupsOptions, ...) ([]*gitlab.Group, *gitlab.Response, error)
- type GitLabClient_Expecter
- func (_e *GitLabClient_Expecter) GetMergeRequestApprovalsConfiguration(projectID interface{}, mergeRequestID interface{}) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
- func (_e *GitLabClient_Expecter) ListGroupProjects(groupID interface{}, options interface{}) *GitLabClient_ListGroupProjects_Call
- func (_e *GitLabClient_Expecter) ListProjectMergeRequests(projectID interface{}, options interface{}) *GitLabClient_ListProjectMergeRequests_Call
- func (_e *GitLabClient_Expecter) ListSubGroups(groupID interface{}, opt interface{}, options ...interface{}) *GitLabClient_ListSubGroups_Call
- type GitLabClient_GetMergeRequestApprovalsConfiguration_Call
- func (_c *GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Return(_a0 *gitlab.MergeRequestApprovals, _a1 *gitlab.Response, _a2 error) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
- func (_c *GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Run(run func(projectID int, mergeRequestID int)) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
- func (_c *GitLabClient_GetMergeRequestApprovalsConfiguration_Call) RunAndReturn(run func(int, int) (*gitlab.MergeRequestApprovals, *gitlab.Response, error)) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
- type GitLabClient_ListGroupProjects_Call
- func (_c *GitLabClient_ListGroupProjects_Call) Return(_a0 []*gitlab.Project, _a1 *gitlab.Response, _a2 error) *GitLabClient_ListGroupProjects_Call
- func (_c *GitLabClient_ListGroupProjects_Call) Run(run func(groupID int, options *gitlab.ListGroupProjectsOptions)) *GitLabClient_ListGroupProjects_Call
- func (_c *GitLabClient_ListGroupProjects_Call) RunAndReturn(...) *GitLabClient_ListGroupProjects_Call
- type GitLabClient_ListProjectMergeRequests_Call
- func (_c *GitLabClient_ListProjectMergeRequests_Call) Return(_a0 []*gitlab.MergeRequest, _a1 *gitlab.Response, _a2 error) *GitLabClient_ListProjectMergeRequests_Call
- func (_c *GitLabClient_ListProjectMergeRequests_Call) Run(run func(projectID int, options *gitlab.ListProjectMergeRequestsOptions)) *GitLabClient_ListProjectMergeRequests_Call
- func (_c *GitLabClient_ListProjectMergeRequests_Call) RunAndReturn(...) *GitLabClient_ListProjectMergeRequests_Call
- type GitLabClient_ListSubGroups_Call
- func (_c *GitLabClient_ListSubGroups_Call) Return(_a0 []*gitlab.Group, _a1 *gitlab.Response, _a2 error) *GitLabClient_ListSubGroups_Call
- func (_c *GitLabClient_ListSubGroups_Call) Run(run func(groupID int, opt *gitlab.ListSubGroupsOptions, ...)) *GitLabClient_ListSubGroups_Call
- func (_c *GitLabClient_ListSubGroups_Call) RunAndReturn(...) *GitLabClient_ListSubGroups_Call
- type SlackClient
- type SlackClient_Expecter
- type SlackClient_PostWebhook_Call
- func (_c *SlackClient_PostWebhook_Call) Return(_a0 error) *SlackClient_PostWebhook_Call
- func (_c *SlackClient_PostWebhook_Call) Run(run func(payload *slack.WebhookMessage)) *SlackClient_PostWebhook_Call
- func (_c *SlackClient_PostWebhook_Call) RunAndReturn(run func(*slack.WebhookMessage) error) *SlackClient_PostWebhook_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitLabClient ¶
GitLabClient is an autogenerated mock type for the GitLabClient type
func NewGitLabClient ¶
func NewGitLabClient(t mockConstructorTestingTNewGitLabClient) *GitLabClient
NewGitLabClient creates a new instance of GitLabClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GitLabClient) EXPECT ¶
func (_m *GitLabClient) EXPECT() *GitLabClient_Expecter
func (*GitLabClient) GetMergeRequestApprovalsConfiguration ¶
func (_m *GitLabClient) GetMergeRequestApprovalsConfiguration(projectID int, mergeRequestID int) (*gitlab.MergeRequestApprovals, *gitlab.Response, error)
GetMergeRequestApprovalsConfiguration provides a mock function with given fields: projectID, mergeRequestID
func (*GitLabClient) ListGroupProjects ¶
func (_m *GitLabClient) ListGroupProjects(groupID int, options *gitlab.ListGroupProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)
ListGroupProjects provides a mock function with given fields: groupID, options
func (*GitLabClient) ListProjectMergeRequests ¶
func (_m *GitLabClient) ListProjectMergeRequests(projectID int, options *gitlab.ListProjectMergeRequestsOptions) ([]*gitlab.MergeRequest, *gitlab.Response, error)
ListProjectMergeRequests provides a mock function with given fields: projectID, options
func (*GitLabClient) ListSubGroups ¶
func (_m *GitLabClient) ListSubGroups(groupID int, opt *gitlab.ListSubGroupsOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.Group, *gitlab.Response, error)
ListSubGroups provides a mock function with given fields: groupID, opt, options
type GitLabClient_Expecter ¶
type GitLabClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GitLabClient_Expecter) GetMergeRequestApprovalsConfiguration ¶
func (_e *GitLabClient_Expecter) GetMergeRequestApprovalsConfiguration(projectID interface{}, mergeRequestID interface{}) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
GetMergeRequestApprovalsConfiguration is a helper method to define mock.On call
- projectID int
- mergeRequestID int
func (*GitLabClient_Expecter) ListGroupProjects ¶
func (_e *GitLabClient_Expecter) ListGroupProjects(groupID interface{}, options interface{}) *GitLabClient_ListGroupProjects_Call
ListGroupProjects is a helper method to define mock.On call
- groupID int
- options *gitlab.ListGroupProjectsOptions
func (*GitLabClient_Expecter) ListProjectMergeRequests ¶
func (_e *GitLabClient_Expecter) ListProjectMergeRequests(projectID interface{}, options interface{}) *GitLabClient_ListProjectMergeRequests_Call
ListProjectMergeRequests is a helper method to define mock.On call
- projectID int
- options *gitlab.ListProjectMergeRequestsOptions
func (*GitLabClient_Expecter) ListSubGroups ¶
func (_e *GitLabClient_Expecter) ListSubGroups(groupID interface{}, opt interface{}, options ...interface{}) *GitLabClient_ListSubGroups_Call
ListSubGroups is a helper method to define mock.On call
- groupID int
- opt *gitlab.ListSubGroupsOptions
- options ...gitlab.RequestOptionFunc
type GitLabClient_GetMergeRequestApprovalsConfiguration_Call ¶
GitLabClient_GetMergeRequestApprovalsConfiguration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMergeRequestApprovalsConfiguration'
func (*GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Return ¶
func (_c *GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Return(_a0 *gitlab.MergeRequestApprovals, _a1 *gitlab.Response, _a2 error) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
func (*GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Run ¶
func (_c *GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Run(run func(projectID int, mergeRequestID int)) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
func (*GitLabClient_GetMergeRequestApprovalsConfiguration_Call) RunAndReturn ¶
func (_c *GitLabClient_GetMergeRequestApprovalsConfiguration_Call) RunAndReturn(run func(int, int) (*gitlab.MergeRequestApprovals, *gitlab.Response, error)) *GitLabClient_GetMergeRequestApprovalsConfiguration_Call
type GitLabClient_ListGroupProjects_Call ¶
GitLabClient_ListGroupProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroupProjects'
func (*GitLabClient_ListGroupProjects_Call) Return ¶
func (_c *GitLabClient_ListGroupProjects_Call) Return(_a0 []*gitlab.Project, _a1 *gitlab.Response, _a2 error) *GitLabClient_ListGroupProjects_Call
func (*GitLabClient_ListGroupProjects_Call) Run ¶
func (_c *GitLabClient_ListGroupProjects_Call) Run(run func(groupID int, options *gitlab.ListGroupProjectsOptions)) *GitLabClient_ListGroupProjects_Call
func (*GitLabClient_ListGroupProjects_Call) RunAndReturn ¶
func (_c *GitLabClient_ListGroupProjects_Call) RunAndReturn(run func(int, *gitlab.ListGroupProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)) *GitLabClient_ListGroupProjects_Call
type GitLabClient_ListProjectMergeRequests_Call ¶
GitLabClient_ListProjectMergeRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjectMergeRequests'
func (*GitLabClient_ListProjectMergeRequests_Call) Return ¶
func (_c *GitLabClient_ListProjectMergeRequests_Call) Return(_a0 []*gitlab.MergeRequest, _a1 *gitlab.Response, _a2 error) *GitLabClient_ListProjectMergeRequests_Call
func (*GitLabClient_ListProjectMergeRequests_Call) Run ¶
func (_c *GitLabClient_ListProjectMergeRequests_Call) Run(run func(projectID int, options *gitlab.ListProjectMergeRequestsOptions)) *GitLabClient_ListProjectMergeRequests_Call
func (*GitLabClient_ListProjectMergeRequests_Call) RunAndReturn ¶
func (_c *GitLabClient_ListProjectMergeRequests_Call) RunAndReturn(run func(int, *gitlab.ListProjectMergeRequestsOptions) ([]*gitlab.MergeRequest, *gitlab.Response, error)) *GitLabClient_ListProjectMergeRequests_Call
type GitLabClient_ListSubGroups_Call ¶
GitLabClient_ListSubGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubGroups'
func (*GitLabClient_ListSubGroups_Call) Return ¶
func (_c *GitLabClient_ListSubGroups_Call) Return(_a0 []*gitlab.Group, _a1 *gitlab.Response, _a2 error) *GitLabClient_ListSubGroups_Call
func (*GitLabClient_ListSubGroups_Call) Run ¶
func (_c *GitLabClient_ListSubGroups_Call) Run(run func(groupID int, opt *gitlab.ListSubGroupsOptions, options ...gitlab.RequestOptionFunc)) *GitLabClient_ListSubGroups_Call
func (*GitLabClient_ListSubGroups_Call) RunAndReturn ¶
func (_c *GitLabClient_ListSubGroups_Call) RunAndReturn(run func(int, *gitlab.ListSubGroupsOptions, ...gitlab.RequestOptionFunc) ([]*gitlab.Group, *gitlab.Response, error)) *GitLabClient_ListSubGroups_Call
type SlackClient ¶
SlackClient is an autogenerated mock type for the SlackClient type
func NewSlackClient ¶
func NewSlackClient(t mockConstructorTestingTNewSlackClient) *SlackClient
NewSlackClient creates a new instance of SlackClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SlackClient) EXPECT ¶
func (_m *SlackClient) EXPECT() *SlackClient_Expecter
func (*SlackClient) PostWebhook ¶
func (_m *SlackClient) PostWebhook(payload *slack.WebhookMessage) error
PostWebhook provides a mock function with given fields: payload
type SlackClient_Expecter ¶
type SlackClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SlackClient_Expecter) PostWebhook ¶
func (_e *SlackClient_Expecter) PostWebhook(payload interface{}) *SlackClient_PostWebhook_Call
PostWebhook is a helper method to define mock.On call
- payload *slack.WebhookMessage
type SlackClient_PostWebhook_Call ¶
SlackClient_PostWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostWebhook'
func (*SlackClient_PostWebhook_Call) Return ¶
func (_c *SlackClient_PostWebhook_Call) Return(_a0 error) *SlackClient_PostWebhook_Call
func (*SlackClient_PostWebhook_Call) Run ¶
func (_c *SlackClient_PostWebhook_Call) Run(run func(payload *slack.WebhookMessage)) *SlackClient_PostWebhook_Call
func (*SlackClient_PostWebhook_Call) RunAndReturn ¶
func (_c *SlackClient_PostWebhook_Call) RunAndReturn(run func(*slack.WebhookMessage) error) *SlackClient_PostWebhook_Call