mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitHubApiClient

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

MockGitHubApiClient is a mock of GitHubApiClient interface.

func NewMockGitHubApiClient

func NewMockGitHubApiClient(ctrl *gomock.Controller) *MockGitHubApiClient

NewMockGitHubApiClient creates a new mock instance.

func (*MockGitHubApiClient) CheckPrIsForInfraAndCreatedByRenovate

func (m *MockGitHubApiClient) CheckPrIsForInfraAndCreatedByRenovate(ctx context.Context, org, repo string, prNum int) (bool, string, error)

CheckPrIsForInfraAndCreatedByRenovate mocks base method.

func (*MockGitHubApiClient) CreateIssueComment

func (m *MockGitHubApiClient) CreateIssueComment(ctx context.Context, org, repo string, prNum int, body string) error

CreateIssueComment mocks base method.

func (*MockGitHubApiClient) CreateLabels

func (m *MockGitHubApiClient) CreateLabels(ctx context.Context, org, repo string, prNum int, labels []string) error

CreateLabels mocks base method.

func (*MockGitHubApiClient) CreatePullRequest

func (m *MockGitHubApiClient) CreatePullRequest(ctx context.Context, org, repo, headBranch, baseBranch, title, body string) (int, error)

CreatePullRequest mocks base method.

func (*MockGitHubApiClient) DeleteBranch

func (m *MockGitHubApiClient) DeleteBranch(ctx context.Context, org, repo, headBranch string) error

DeleteBranch mocks base method.

func (*MockGitHubApiClient) EXPECT

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

func (*MockGitHubApiClient) GetPullRequestTitleAndChangedFilepaths

func (m *MockGitHubApiClient) GetPullRequestTitleAndChangedFilepaths(ctx context.Context, org, repo string, prNum int) (string, []string, error)

GetPullRequestTitleAndChangedFilepaths mocks base method.

func (*MockGitHubApiClient) HealthCheck

func (m *MockGitHubApiClient) HealthCheck() error

HealthCheck mocks base method.

func (*MockGitHubApiClient) UpdatePullRequestBody

func (m *MockGitHubApiClient) UpdatePullRequestBody(ctx context.Context, org, repo string, prNum int, body string) error

UpdatePullRequestBody mocks base method.

type MockGitHubApiClientMockRecorder

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

MockGitHubApiClientMockRecorder is the mock recorder for MockGitHubApiClient.

func (*MockGitHubApiClientMockRecorder) CheckPrIsForInfraAndCreatedByRenovate

func (mr *MockGitHubApiClientMockRecorder) CheckPrIsForInfraAndCreatedByRenovate(ctx, org, repo, prNum interface{}) *gomock.Call

CheckPrIsForInfraAndCreatedByRenovate indicates an expected call of CheckPrIsForInfraAndCreatedByRenovate.

func (*MockGitHubApiClientMockRecorder) CreateIssueComment

func (mr *MockGitHubApiClientMockRecorder) CreateIssueComment(ctx, org, repo, prNum, body interface{}) *gomock.Call

CreateIssueComment indicates an expected call of CreateIssueComment.

func (*MockGitHubApiClientMockRecorder) CreateLabels

func (mr *MockGitHubApiClientMockRecorder) CreateLabels(ctx, org, repo, prNum, labels interface{}) *gomock.Call

CreateLabels indicates an expected call of CreateLabels.

func (*MockGitHubApiClientMockRecorder) CreatePullRequest

func (mr *MockGitHubApiClientMockRecorder) CreatePullRequest(ctx, org, repo, headBranch, baseBranch, title, body interface{}) *gomock.Call

CreatePullRequest indicates an expected call of CreatePullRequest.

func (*MockGitHubApiClientMockRecorder) DeleteBranch

func (mr *MockGitHubApiClientMockRecorder) DeleteBranch(ctx, org, repo, headBranch interface{}) *gomock.Call

DeleteBranch indicates an expected call of DeleteBranch.

func (*MockGitHubApiClientMockRecorder) GetPullRequestTitleAndChangedFilepaths

func (mr *MockGitHubApiClientMockRecorder) GetPullRequestTitleAndChangedFilepaths(ctx, org, repo, prNum interface{}) *gomock.Call

GetPullRequestTitleAndChangedFilepaths indicates an expected call of GetPullRequestTitleAndChangedFilepaths.

func (*MockGitHubApiClientMockRecorder) HealthCheck

func (mr *MockGitHubApiClientMockRecorder) HealthCheck() *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockGitHubApiClientMockRecorder) UpdatePullRequestBody

func (mr *MockGitHubApiClientMockRecorder) UpdatePullRequestBody(ctx, org, repo, prNum, body interface{}) *gomock.Call

UpdatePullRequestBody indicates an expected call of UpdatePullRequestBody.

Jump to

Keyboard shortcuts

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