mocks

package
v0.16.20 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChecksService

type MockChecksService struct {
	// contains filtered or unexported fields
}

MockChecksService is a mock of ChecksService interface.

func NewMockChecksService

func NewMockChecksService(ctrl *gomock.Controller) *MockChecksService

NewMockChecksService creates a new mock instance.

func (*MockChecksService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockChecksService) ListCheckRunsForRef

func (m *MockChecksService) ListCheckRunsForRef(ctx context.Context, owner, repo, ref string, opts *github.ListCheckRunsOptions) (*github.ListCheckRunsResults, *github.Response, error)

ListCheckRunsForRef mocks base method.

type MockChecksServiceMockRecorder

type MockChecksServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockChecksServiceMockRecorder is the mock recorder for MockChecksService.

func (*MockChecksServiceMockRecorder) ListCheckRunsForRef

func (mr *MockChecksServiceMockRecorder) ListCheckRunsForRef(ctx, owner, repo, ref, opts interface{}) *gomock.Call

ListCheckRunsForRef indicates an expected call of ListCheckRunsForRef.

type MockCircleCIService added in v0.2.9

type MockCircleCIService struct {
	// contains filtered or unexported fields
}

MockCircleCIService is a mock of CircleCIService interface.

func NewMockCircleCIService added in v0.2.9

func NewMockCircleCIService(ctrl *gomock.Controller) *MockCircleCIService

NewMockCircleCIService creates a new mock instance.

func (*MockCircleCIService) BuildByProjectWithContext added in v0.2.9

func (m *MockCircleCIService) BuildByProjectWithContext(ctx context.Context, vcsType circleci.VcsType, account, repo string, opts map[string]interface{}) error

BuildByProjectWithContext mocks base method.

func (*MockCircleCIService) EXPECT added in v0.2.9

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCircleCIService) GetPipelineWorkflowWithContext added in v0.2.10

func (m *MockCircleCIService) GetPipelineWorkflowWithContext(ctx context.Context, pipelineID, pageToken string) (*circleci.WorkflowList, error)

GetPipelineWorkflowWithContext mocks base method.

func (*MockCircleCIService) ListBuildArtifactsWithContext added in v0.2.9

func (m *MockCircleCIService) ListBuildArtifactsWithContext(ctx context.Context, vcsType circleci.VcsType, account, repo string, buildNum int) ([]*circleci.Artifact, error)

ListBuildArtifactsWithContext mocks base method.

func (*MockCircleCIService) ListRecentBuildsForProjectWithContext added in v0.2.9

func (m *MockCircleCIService) ListRecentBuildsForProjectWithContext(ctx context.Context, vcsType circleci.VcsType, account, repo, branch, status string, limit, offset int) ([]*circleci.Build, error)

ListRecentBuildsForProjectWithContext mocks base method.

func (*MockCircleCIService) TriggerPipelineWithContext added in v0.2.10

func (m *MockCircleCIService) TriggerPipelineWithContext(ctx context.Context, vcsType circleci.VcsType, account, repo, branch, tag string, params map[string]interface{}) (*circleci.Pipeline, error)

TriggerPipelineWithContext mocks base method.

type MockCircleCIServiceMockRecorder added in v0.2.9

type MockCircleCIServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockCircleCIServiceMockRecorder is the mock recorder for MockCircleCIService.

func (*MockCircleCIServiceMockRecorder) BuildByProjectWithContext added in v0.2.9

func (mr *MockCircleCIServiceMockRecorder) BuildByProjectWithContext(ctx, vcsType, account, repo, opts interface{}) *gomock.Call

BuildByProjectWithContext indicates an expected call of BuildByProjectWithContext.

func (*MockCircleCIServiceMockRecorder) GetPipelineWorkflowWithContext added in v0.2.10

func (mr *MockCircleCIServiceMockRecorder) GetPipelineWorkflowWithContext(ctx, pipelineID, pageToken interface{}) *gomock.Call

GetPipelineWorkflowWithContext indicates an expected call of GetPipelineWorkflowWithContext.

func (*MockCircleCIServiceMockRecorder) ListBuildArtifactsWithContext added in v0.2.9

func (mr *MockCircleCIServiceMockRecorder) ListBuildArtifactsWithContext(ctx, vcsType, account, repo, buildNum interface{}) *gomock.Call

ListBuildArtifactsWithContext indicates an expected call of ListBuildArtifactsWithContext.

func (*MockCircleCIServiceMockRecorder) ListRecentBuildsForProjectWithContext added in v0.2.9

func (mr *MockCircleCIServiceMockRecorder) ListRecentBuildsForProjectWithContext(ctx, vcsType, account, repo, branch, status, limit, offset interface{}) *gomock.Call

ListRecentBuildsForProjectWithContext indicates an expected call of ListRecentBuildsForProjectWithContext.

func (*MockCircleCIServiceMockRecorder) TriggerPipelineWithContext added in v0.2.10

func (mr *MockCircleCIServiceMockRecorder) TriggerPipelineWithContext(ctx, vcsType, account, repo, branch, tag, params interface{}) *gomock.Call

TriggerPipelineWithContext indicates an expected call of TriggerPipelineWithContext.

type MockGitService

type MockGitService struct {
	// contains filtered or unexported fields
}

MockGitService is a mock of GitService interface.

func NewMockGitService

func NewMockGitService(ctrl *gomock.Controller) *MockGitService

NewMockGitService creates a new mock instance.

func (*MockGitService) CreateRef

func (m *MockGitService) CreateRef(ctx context.Context, owner, repo string, ref *github.Reference) (*github.Reference, *github.Response, error)

CreateRef mocks base method.

func (*MockGitService) DeleteRef

func (m *MockGitService) DeleteRef(ctx context.Context, owner, repo, ref string) (*github.Response, error)

DeleteRef mocks base method.

func (*MockGitService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitService) GetCommit added in v0.15.0

func (m *MockGitService) GetCommit(ctx context.Context, owner, repo, ref string) (*github.Commit, *github.Response, error)

GetCommit mocks base method.

func (*MockGitService) GetRef

func (m *MockGitService) GetRef(ctx context.Context, owner, repo, ref string) (*github.Reference, *github.Response, error)

GetRef mocks base method.

func (*MockGitService) ListMatchingRefs added in v0.15.0

func (m *MockGitService) ListMatchingRefs(ctx context.Context, owner, repo string, opts *github.ReferenceListOptions) ([]*github.Reference, *github.Response, error)

ListMatchingRefs mocks base method.

type MockGitServiceMockRecorder

type MockGitServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockGitServiceMockRecorder is the mock recorder for MockGitService.

func (*MockGitServiceMockRecorder) CreateRef

func (mr *MockGitServiceMockRecorder) CreateRef(ctx, owner, repo, ref interface{}) *gomock.Call

CreateRef indicates an expected call of CreateRef.

func (*MockGitServiceMockRecorder) DeleteRef

func (mr *MockGitServiceMockRecorder) DeleteRef(ctx, owner, repo, ref interface{}) *gomock.Call

DeleteRef indicates an expected call of DeleteRef.

func (*MockGitServiceMockRecorder) GetCommit added in v0.15.0

func (mr *MockGitServiceMockRecorder) GetCommit(ctx, owner, repo, ref interface{}) *gomock.Call

GetCommit indicates an expected call of GetCommit.

func (*MockGitServiceMockRecorder) GetRef

func (mr *MockGitServiceMockRecorder) GetRef(ctx, owner, repo, ref interface{}) *gomock.Call

GetRef indicates an expected call of GetRef.

func (*MockGitServiceMockRecorder) ListMatchingRefs added in v0.15.0

func (mr *MockGitServiceMockRecorder) ListMatchingRefs(ctx, owner, repo, opts interface{}) *gomock.Call

ListMatchingRefs indicates an expected call of ListMatchingRefs.

type MockIssuesService

type MockIssuesService struct {
	// contains filtered or unexported fields
}

MockIssuesService is a mock of IssuesService interface.

func NewMockIssuesService

func NewMockIssuesService(ctrl *gomock.Controller) *MockIssuesService

NewMockIssuesService creates a new mock instance.

func (*MockIssuesService) AddAssignees

func (m *MockIssuesService) AddAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*github.Issue, *github.Response, error)

AddAssignees mocks base method.

func (*MockIssuesService) AddLabelsToIssue

func (m *MockIssuesService) AddLabelsToIssue(ctx context.Context, owner, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)

AddLabelsToIssue mocks base method.

func (*MockIssuesService) CreateComment

func (m *MockIssuesService) CreateComment(ctx context.Context, owner, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

CreateComment mocks base method.

func (*MockIssuesService) DeleteComment

func (m *MockIssuesService) DeleteComment(ctx context.Context, owner, repo string, commentID int64) (*github.Response, error)

DeleteComment mocks base method.

func (*MockIssuesService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIssuesService) Edit

func (m *MockIssuesService) Edit(ctx context.Context, owner, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)

Edit mocks base method.

func (*MockIssuesService) Get

func (m *MockIssuesService) Get(ctx context.Context, owner, repo string, number int) (*github.Issue, *github.Response, error)

Get mocks base method.

func (*MockIssuesService) ListByRepo

func (m *MockIssuesService) ListByRepo(ctx context.Context, owner, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)

ListByRepo mocks base method.

func (*MockIssuesService) ListComments

func (m *MockIssuesService) ListComments(ctx context.Context, owner, repo string, number int, opts *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)

ListComments mocks base method.

func (*MockIssuesService) ListLabelsByIssue

func (m *MockIssuesService) ListLabelsByIssue(ctx context.Context, owner, repo string, number int, opt *github.ListOptions) ([]*github.Label, *github.Response, error)

ListLabelsByIssue mocks base method.

func (*MockIssuesService) RemoveLabelForIssue

func (m *MockIssuesService) RemoveLabelForIssue(ctx context.Context, owner, repo string, number int, label string) (*github.Response, error)

RemoveLabelForIssue mocks base method.

type MockIssuesServiceMockRecorder

type MockIssuesServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIssuesServiceMockRecorder is the mock recorder for MockIssuesService.

func (*MockIssuesServiceMockRecorder) AddAssignees

func (mr *MockIssuesServiceMockRecorder) AddAssignees(ctx, owner, repo, number, assignees interface{}) *gomock.Call

AddAssignees indicates an expected call of AddAssignees.

func (*MockIssuesServiceMockRecorder) AddLabelsToIssue

func (mr *MockIssuesServiceMockRecorder) AddLabelsToIssue(ctx, owner, repo, number, labels interface{}) *gomock.Call

AddLabelsToIssue indicates an expected call of AddLabelsToIssue.

func (*MockIssuesServiceMockRecorder) CreateComment

func (mr *MockIssuesServiceMockRecorder) CreateComment(ctx, owner, repo, number, comment interface{}) *gomock.Call

CreateComment indicates an expected call of CreateComment.

func (*MockIssuesServiceMockRecorder) DeleteComment

func (mr *MockIssuesServiceMockRecorder) DeleteComment(ctx, owner, repo, commentID interface{}) *gomock.Call

DeleteComment indicates an expected call of DeleteComment.

func (*MockIssuesServiceMockRecorder) Edit

func (mr *MockIssuesServiceMockRecorder) Edit(ctx, owner, repo, number, issue interface{}) *gomock.Call

Edit indicates an expected call of Edit.

func (*MockIssuesServiceMockRecorder) Get

func (mr *MockIssuesServiceMockRecorder) Get(ctx, owner, repo, number interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIssuesServiceMockRecorder) ListByRepo

func (mr *MockIssuesServiceMockRecorder) ListByRepo(ctx, owner, repo, opts interface{}) *gomock.Call

ListByRepo indicates an expected call of ListByRepo.

func (*MockIssuesServiceMockRecorder) ListComments

func (mr *MockIssuesServiceMockRecorder) ListComments(ctx, owner, repo, number, opts interface{}) *gomock.Call

ListComments indicates an expected call of ListComments.

func (*MockIssuesServiceMockRecorder) ListLabelsByIssue

func (mr *MockIssuesServiceMockRecorder) ListLabelsByIssue(ctx, owner, repo, number, opt interface{}) *gomock.Call

ListLabelsByIssue indicates an expected call of ListLabelsByIssue.

func (*MockIssuesServiceMockRecorder) RemoveLabelForIssue

func (mr *MockIssuesServiceMockRecorder) RemoveLabelForIssue(ctx, owner, repo, number, label interface{}) *gomock.Call

RemoveLabelForIssue indicates an expected call of RemoveLabelForIssue.

type MockMetricsProvider

type MockMetricsProvider struct {
	// contains filtered or unexported fields
}

MockMetricsProvider is a mock of MetricsProvider interface.

func NewMockMetricsProvider

func NewMockMetricsProvider(ctrl *gomock.Controller) *MockMetricsProvider

NewMockMetricsProvider creates a new mock instance.

func (*MockMetricsProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMetricsProvider) IncreaseCronTaskErrors

func (m *MockMetricsProvider) IncreaseCronTaskErrors(name string)

IncreaseCronTaskErrors mocks base method.

func (*MockMetricsProvider) IncreaseGithubCacheHits

func (m *MockMetricsProvider) IncreaseGithubCacheHits(method, handler string)

IncreaseGithubCacheHits mocks base method.

func (*MockMetricsProvider) IncreaseGithubCacheMisses

func (m *MockMetricsProvider) IncreaseGithubCacheMisses(method, handler string)

IncreaseGithubCacheMisses mocks base method.

func (*MockMetricsProvider) IncreaseRateLimiterErrors added in v0.3.0

func (m *MockMetricsProvider) IncreaseRateLimiterErrors()

IncreaseRateLimiterErrors mocks base method.

func (*MockMetricsProvider) IncreaseWebhookErrors

func (m *MockMetricsProvider) IncreaseWebhookErrors(name string)

IncreaseWebhookErrors mocks base method.

func (*MockMetricsProvider) IncreaseWebhookRequest

func (m *MockMetricsProvider) IncreaseWebhookRequest(name string)

IncreaseWebhookRequest mocks base method.

func (*MockMetricsProvider) ObserveCronTaskDuration

func (m *MockMetricsProvider) ObserveCronTaskDuration(name string, elapsed float64)

ObserveCronTaskDuration mocks base method.

func (*MockMetricsProvider) ObserveGithubRequestDuration

func (m *MockMetricsProvider) ObserveGithubRequestDuration(method, handler, statusCode string, elapsed float64)

ObserveGithubRequestDuration mocks base method.

func (*MockMetricsProvider) ObserveHTTPRequestDuration

func (m *MockMetricsProvider) ObserveHTTPRequestDuration(method, handler, statusCode string, elapsed float64)

ObserveHTTPRequestDuration mocks base method.

type MockMetricsProviderMockRecorder

type MockMetricsProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockMetricsProviderMockRecorder is the mock recorder for MockMetricsProvider.

func (*MockMetricsProviderMockRecorder) IncreaseCronTaskErrors

func (mr *MockMetricsProviderMockRecorder) IncreaseCronTaskErrors(name interface{}) *gomock.Call

IncreaseCronTaskErrors indicates an expected call of IncreaseCronTaskErrors.

func (*MockMetricsProviderMockRecorder) IncreaseGithubCacheHits

func (mr *MockMetricsProviderMockRecorder) IncreaseGithubCacheHits(method, handler interface{}) *gomock.Call

IncreaseGithubCacheHits indicates an expected call of IncreaseGithubCacheHits.

func (*MockMetricsProviderMockRecorder) IncreaseGithubCacheMisses

func (mr *MockMetricsProviderMockRecorder) IncreaseGithubCacheMisses(method, handler interface{}) *gomock.Call

IncreaseGithubCacheMisses indicates an expected call of IncreaseGithubCacheMisses.

func (*MockMetricsProviderMockRecorder) IncreaseRateLimiterErrors added in v0.3.0

func (mr *MockMetricsProviderMockRecorder) IncreaseRateLimiterErrors() *gomock.Call

IncreaseRateLimiterErrors indicates an expected call of IncreaseRateLimiterErrors.

func (*MockMetricsProviderMockRecorder) IncreaseWebhookErrors

func (mr *MockMetricsProviderMockRecorder) IncreaseWebhookErrors(name interface{}) *gomock.Call

IncreaseWebhookErrors indicates an expected call of IncreaseWebhookErrors.

func (*MockMetricsProviderMockRecorder) IncreaseWebhookRequest

func (mr *MockMetricsProviderMockRecorder) IncreaseWebhookRequest(name interface{}) *gomock.Call

IncreaseWebhookRequest indicates an expected call of IncreaseWebhookRequest.

func (*MockMetricsProviderMockRecorder) ObserveCronTaskDuration

func (mr *MockMetricsProviderMockRecorder) ObserveCronTaskDuration(name, elapsed interface{}) *gomock.Call

ObserveCronTaskDuration indicates an expected call of ObserveCronTaskDuration.

func (*MockMetricsProviderMockRecorder) ObserveGithubRequestDuration

func (mr *MockMetricsProviderMockRecorder) ObserveGithubRequestDuration(method, handler, statusCode, elapsed interface{}) *gomock.Call

ObserveGithubRequestDuration indicates an expected call of ObserveGithubRequestDuration.

func (*MockMetricsProviderMockRecorder) ObserveHTTPRequestDuration

func (mr *MockMetricsProviderMockRecorder) ObserveHTTPRequestDuration(method, handler, statusCode, elapsed interface{}) *gomock.Call

ObserveHTTPRequestDuration indicates an expected call of ObserveHTTPRequestDuration.

type MockOrganizationsService

type MockOrganizationsService struct {
	// contains filtered or unexported fields
}

MockOrganizationsService is a mock of OrganizationsService interface.

func NewMockOrganizationsService

func NewMockOrganizationsService(ctrl *gomock.Controller) *MockOrganizationsService

NewMockOrganizationsService creates a new mock instance.

func (*MockOrganizationsService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOrganizationsService) GetOrgMembership

func (m *MockOrganizationsService) GetOrgMembership(ctx context.Context, user, org string) (*github.Membership, *github.Response, error)

GetOrgMembership mocks base method.

func (*MockOrganizationsService) IsMember

func (m *MockOrganizationsService) IsMember(ctx context.Context, org, user string) (bool, *github.Response, error)

IsMember mocks base method.

func (*MockOrganizationsService) ListMembers

ListMembers mocks base method.

type MockOrganizationsServiceMockRecorder

type MockOrganizationsServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockOrganizationsServiceMockRecorder is the mock recorder for MockOrganizationsService.

func (*MockOrganizationsServiceMockRecorder) GetOrgMembership

func (mr *MockOrganizationsServiceMockRecorder) GetOrgMembership(ctx, user, org interface{}) *gomock.Call

GetOrgMembership indicates an expected call of GetOrgMembership.

func (*MockOrganizationsServiceMockRecorder) IsMember

func (mr *MockOrganizationsServiceMockRecorder) IsMember(ctx, org, user interface{}) *gomock.Call

IsMember indicates an expected call of IsMember.

func (*MockOrganizationsServiceMockRecorder) ListMembers

func (mr *MockOrganizationsServiceMockRecorder) ListMembers(ctx, org, opts interface{}) *gomock.Call

ListMembers indicates an expected call of ListMembers.

type MockPipelinesService added in v0.14.0

type MockPipelinesService struct {
	// contains filtered or unexported fields
}

MockPipelinesService is a mock of PipelinesService interface.

func NewMockPipelinesService added in v0.14.0

func NewMockPipelinesService(ctrl *gomock.Controller) *MockPipelinesService

NewMockPipelinesService creates a new mock instance.

func (*MockPipelinesService) CancelPipelineBuild added in v0.14.0

func (m *MockPipelinesService) CancelPipelineBuild(pid interface{}, pipeline int, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error)

CancelPipelineBuild mocks base method.

func (*MockPipelinesService) CreatePipeline added in v0.14.0

func (m *MockPipelinesService) CreatePipeline(pid interface{}, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error)

CreatePipeline mocks base method.

func (*MockPipelinesService) EXPECT added in v0.14.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPipelinesService) GetPipeline added in v0.14.0

func (m *MockPipelinesService) GetPipeline(pid interface{}, pipeline int, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error)

GetPipeline mocks base method.

func (*MockPipelinesService) GetPipelineVariables added in v0.14.0

func (m *MockPipelinesService) GetPipelineVariables(pid interface{}, pipeline int, options ...gitlab.RequestOptionFunc) ([]*gitlab.PipelineVariable, *gitlab.Response, error)

GetPipelineVariables mocks base method.

func (*MockPipelinesService) ListProjectPipelines added in v0.14.0

func (m *MockPipelinesService) ListProjectPipelines(pid interface{}, opt *gitlab.ListProjectPipelinesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.PipelineInfo, *gitlab.Response, error)

ListProjectPipelines mocks base method.

type MockPipelinesServiceMockRecorder added in v0.14.0

type MockPipelinesServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockPipelinesServiceMockRecorder is the mock recorder for MockPipelinesService.

func (*MockPipelinesServiceMockRecorder) CancelPipelineBuild added in v0.14.0

func (mr *MockPipelinesServiceMockRecorder) CancelPipelineBuild(pid, pipeline interface{}, options ...interface{}) *gomock.Call

CancelPipelineBuild indicates an expected call of CancelPipelineBuild.

func (*MockPipelinesServiceMockRecorder) CreatePipeline added in v0.14.0

func (mr *MockPipelinesServiceMockRecorder) CreatePipeline(pid, opt interface{}, options ...interface{}) *gomock.Call

CreatePipeline indicates an expected call of CreatePipeline.

func (*MockPipelinesServiceMockRecorder) GetPipeline added in v0.14.0

func (mr *MockPipelinesServiceMockRecorder) GetPipeline(pid, pipeline interface{}, options ...interface{}) *gomock.Call

GetPipeline indicates an expected call of GetPipeline.

func (*MockPipelinesServiceMockRecorder) GetPipelineVariables added in v0.14.0

func (mr *MockPipelinesServiceMockRecorder) GetPipelineVariables(pid, pipeline interface{}, options ...interface{}) *gomock.Call

GetPipelineVariables indicates an expected call of GetPipelineVariables.

func (*MockPipelinesServiceMockRecorder) ListProjectPipelines added in v0.14.0

func (mr *MockPipelinesServiceMockRecorder) ListProjectPipelines(pid, opt interface{}, options ...interface{}) *gomock.Call

ListProjectPipelines indicates an expected call of ListProjectPipelines.

type MockPullRequestsService

type MockPullRequestsService struct {
	// contains filtered or unexported fields
}

MockPullRequestsService is a mock of PullRequestsService interface.

func NewMockPullRequestsService

func NewMockPullRequestsService(ctrl *gomock.Controller) *MockPullRequestsService

NewMockPullRequestsService creates a new mock instance.

func (*MockPullRequestsService) CreateReview added in v0.5.8

CreateReview mocks base method.

func (*MockPullRequestsService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPullRequestsService) Get

func (m *MockPullRequestsService) Get(ctx context.Context, owner, repo string, number int) (*github.PullRequest, *github.Response, error)

Get mocks base method.

func (*MockPullRequestsService) List

List mocks base method.

func (*MockPullRequestsService) ListFiles

func (m *MockPullRequestsService) ListFiles(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.CommitFile, *github.Response, error)

ListFiles mocks base method.

func (*MockPullRequestsService) ListReviewers

func (m *MockPullRequestsService) ListReviewers(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) (*github.Reviewers, *github.Response, error)

ListReviewers mocks base method.

func (*MockPullRequestsService) ListReviews

func (m *MockPullRequestsService) ListReviews(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.PullRequestReview, *github.Response, error)

ListReviews mocks base method.

func (*MockPullRequestsService) Merge

func (m *MockPullRequestsService) Merge(ctx context.Context, owner, repo string, number int, commitMessage string, options *github.PullRequestOptions) (*github.PullRequestMergeResult, *github.Response, error)

Merge mocks base method.

func (*MockPullRequestsService) RequestReviewers

func (m *MockPullRequestsService) RequestReviewers(ctx context.Context, owner, repo string, number int, reviewers github.ReviewersRequest) (*github.PullRequest, *github.Response, error)

RequestReviewers mocks base method.

func (*MockPullRequestsService) UpdateBranch

UpdateBranch mocks base method.

type MockPullRequestsServiceMockRecorder

type MockPullRequestsServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockPullRequestsServiceMockRecorder is the mock recorder for MockPullRequestsService.

func (*MockPullRequestsServiceMockRecorder) CreateReview added in v0.5.8

func (mr *MockPullRequestsServiceMockRecorder) CreateReview(ctx, owner, repo, number, review interface{}) *gomock.Call

CreateReview indicates an expected call of CreateReview.

func (*MockPullRequestsServiceMockRecorder) Get

func (mr *MockPullRequestsServiceMockRecorder) Get(ctx, owner, repo, number interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPullRequestsServiceMockRecorder) List

func (mr *MockPullRequestsServiceMockRecorder) List(ctx, owner, repo, opts interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockPullRequestsServiceMockRecorder) ListFiles

func (mr *MockPullRequestsServiceMockRecorder) ListFiles(ctx, owner, repo, number, opts interface{}) *gomock.Call

ListFiles indicates an expected call of ListFiles.

func (*MockPullRequestsServiceMockRecorder) ListReviewers

func (mr *MockPullRequestsServiceMockRecorder) ListReviewers(ctx, owner, repo, number, opts interface{}) *gomock.Call

ListReviewers indicates an expected call of ListReviewers.

func (*MockPullRequestsServiceMockRecorder) ListReviews

func (mr *MockPullRequestsServiceMockRecorder) ListReviews(ctx, owner, repo, number, opts interface{}) *gomock.Call

ListReviews indicates an expected call of ListReviews.

func (*MockPullRequestsServiceMockRecorder) Merge

func (mr *MockPullRequestsServiceMockRecorder) Merge(ctx, owner, repo, number, commitMessage, options interface{}) *gomock.Call

Merge indicates an expected call of Merge.

func (*MockPullRequestsServiceMockRecorder) RequestReviewers

func (mr *MockPullRequestsServiceMockRecorder) RequestReviewers(ctx, owner, repo, number, reviewers interface{}) *gomock.Call

RequestReviewers indicates an expected call of RequestReviewers.

func (*MockPullRequestsServiceMockRecorder) UpdateBranch

func (mr *MockPullRequestsServiceMockRecorder) UpdateBranch(ctx, owner, repo, number, opts interface{}) *gomock.Call

UpdateBranch indicates an expected call of UpdateBranch.

type MockRepositoriesService

type MockRepositoriesService struct {
	// contains filtered or unexported fields
}

MockRepositoriesService is a mock of RepositoriesService interface.

func NewMockRepositoriesService

func NewMockRepositoriesService(ctrl *gomock.Controller) *MockRepositoriesService

NewMockRepositoriesService creates a new mock instance.

func (*MockRepositoriesService) CreateStatus

func (m *MockRepositoriesService) CreateStatus(ctx context.Context, owner, repo, ref string, status *github.RepoStatus) (*github.RepoStatus, *github.Response, error)

CreateStatus mocks base method.

func (*MockRepositoriesService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepositoriesService) Get

Get mocks base method.

func (*MockRepositoriesService) GetBranch

func (m *MockRepositoriesService) GetBranch(ctx context.Context, owner, repo, branch string, followRedirects bool) (*github.Branch, *github.Response, error)

GetBranch mocks base method.

func (*MockRepositoriesService) GetCombinedStatus

func (m *MockRepositoriesService) GetCombinedStatus(ctx context.Context, owner, repo, ref string, opts *github.ListOptions) (*github.CombinedStatus, *github.Response, error)

GetCombinedStatus mocks base method.

func (*MockRepositoriesService) ListBranches added in v0.16.6

func (m *MockRepositoriesService) ListBranches(ctx context.Context, owner, repo string, opts *github.BranchListOptions) ([]*github.Branch, *github.Response, error)

ListBranches mocks base method.

func (*MockRepositoriesService) ListStatuses

func (m *MockRepositoriesService) ListStatuses(ctx context.Context, owner, repo, ref string, opts *github.ListOptions) ([]*github.RepoStatus, *github.Response, error)

ListStatuses mocks base method.

func (*MockRepositoriesService) ListTeams

func (m *MockRepositoriesService) ListTeams(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.Team, *github.Response, error)

ListTeams mocks base method.

type MockRepositoriesServiceMockRecorder

type MockRepositoriesServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoriesServiceMockRecorder is the mock recorder for MockRepositoriesService.

func (*MockRepositoriesServiceMockRecorder) CreateStatus

func (mr *MockRepositoriesServiceMockRecorder) CreateStatus(ctx, owner, repo, ref, status interface{}) *gomock.Call

CreateStatus indicates an expected call of CreateStatus.

func (*MockRepositoriesServiceMockRecorder) Get

func (mr *MockRepositoriesServiceMockRecorder) Get(ctx, owner, repo interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoriesServiceMockRecorder) GetBranch

func (mr *MockRepositoriesServiceMockRecorder) GetBranch(ctx, owner, repo, branch, followRedirects interface{}) *gomock.Call

GetBranch indicates an expected call of GetBranch.

func (*MockRepositoriesServiceMockRecorder) GetCombinedStatus

func (mr *MockRepositoriesServiceMockRecorder) GetCombinedStatus(ctx, owner, repo, ref, opts interface{}) *gomock.Call

GetCombinedStatus indicates an expected call of GetCombinedStatus.

func (*MockRepositoriesServiceMockRecorder) ListBranches added in v0.16.6

func (mr *MockRepositoriesServiceMockRecorder) ListBranches(ctx, owner, repo, opts interface{}) *gomock.Call

ListBranches indicates an expected call of ListBranches.

func (*MockRepositoriesServiceMockRecorder) ListStatuses

func (mr *MockRepositoriesServiceMockRecorder) ListStatuses(ctx, owner, repo, ref, opts interface{}) *gomock.Call

ListStatuses indicates an expected call of ListStatuses.

func (*MockRepositoriesServiceMockRecorder) ListTeams

func (mr *MockRepositoriesServiceMockRecorder) ListTeams(ctx, owner, repo, opts interface{}) *gomock.Call

ListTeams indicates an expected call of ListTeams.

type MockTeamsService added in v0.5.8

type MockTeamsService struct {
	// contains filtered or unexported fields
}

MockTeamsService is a mock of TeamsService interface.

func NewMockTeamsService added in v0.5.8

func NewMockTeamsService(ctrl *gomock.Controller) *MockTeamsService

NewMockTeamsService creates a new mock instance.

func (*MockTeamsService) EXPECT added in v0.5.8

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTeamsService) ListTeamMembersBySlug added in v0.5.8

func (m *MockTeamsService) ListTeamMembersBySlug(ctx context.Context, org, slug string, opts *github.TeamListTeamMembersOptions) ([]*github.User, *github.Response, error)

ListTeamMembersBySlug mocks base method.

type MockTeamsServiceMockRecorder added in v0.5.8

type MockTeamsServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTeamsServiceMockRecorder is the mock recorder for MockTeamsService.

func (*MockTeamsServiceMockRecorder) ListTeamMembersBySlug added in v0.5.8

func (mr *MockTeamsServiceMockRecorder) ListTeamMembersBySlug(ctx, org, slug, opts interface{}) *gomock.Call

ListTeamMembersBySlug indicates an expected call of ListTeamMembersBySlug.

Jump to

Keyboard shortcuts

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