mocks

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLabClient

type GitLabClient struct {
	mock.Mock
}

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

type GitLabClient_GetMergeRequestApprovalsConfiguration_Call struct {
	*mock.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 (*GitLabClient_GetMergeRequestApprovalsConfiguration_Call) Run

func (*GitLabClient_GetMergeRequestApprovalsConfiguration_Call) RunAndReturn

type GitLabClient_ListGroupProjects_Call

type GitLabClient_ListGroupProjects_Call struct {
	*mock.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 (*GitLabClient_ListGroupProjects_Call) Run

func (*GitLabClient_ListGroupProjects_Call) RunAndReturn

type GitLabClient_ListProjectMergeRequests_Call

type GitLabClient_ListProjectMergeRequests_Call struct {
	*mock.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 (*GitLabClient_ListProjectMergeRequests_Call) Run

type GitLabClient_ListSubGroups_Call

type GitLabClient_ListSubGroups_Call struct {
	*mock.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 (*GitLabClient_ListSubGroups_Call) Run

type SlackClient

type SlackClient struct {
	mock.Mock
}

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

type SlackClient_PostWebhook_Call struct {
	*mock.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 (*SlackClient_PostWebhook_Call) Run

func (*SlackClient_PostWebhook_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL