mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

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 MockGithubClient

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

MockGithubClient is a mock of GithubClient interface.

func NewMockGithubClient

func NewMockGithubClient(ctrl *gomock.Controller) *MockGithubClient

NewMockGithubClient creates a new mock instance.

func (*MockGithubClient) AddLabel added in v0.13.0

func (m *MockGithubClient) AddLabel(ctx context.Context, owner, repo string, pullRequestOrIssueNumber int, label string) error

AddLabel mocks base method.

func (*MockGithubClient) CreateIssueComment

func (m *MockGithubClient) CreateIssueComment(ctx context.Context, owner, repo string, issueOrPRNr int, comment string) error

CreateIssueComment mocks base method.

func (*MockGithubClient) EXPECT

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

func (*MockGithubClient) ListPullRequests

func (m *MockGithubClient) ListPullRequests(ctx context.Context, owner, repo, state, sort, sortDirection string) githubclt.PRIterator

ListPullRequests mocks base method.

func (*MockGithubClient) ReadyForMerge added in v0.12.0

func (m *MockGithubClient) ReadyForMerge(ctx context.Context, owner, repo string, prNumber int) (*githubclt.ReadyForMergeStatus, error)

ReadyForMerge mocks base method.

func (*MockGithubClient) RemoveLabel added in v0.13.0

func (m *MockGithubClient) RemoveLabel(ctx context.Context, owner, repo string, pullRequestOrIssueNumber int, label string) error

RemoveLabel mocks base method.

func (*MockGithubClient) UpdateBranch

func (m *MockGithubClient) UpdateBranch(ctx context.Context, owner, repo string, pullRequestNumber int) (*githubclt.UpdateBranchResult, error)

UpdateBranch mocks base method.

type MockGithubClientMockRecorder

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

MockGithubClientMockRecorder is the mock recorder for MockGithubClient.

func (*MockGithubClientMockRecorder) AddLabel added in v0.13.0

func (mr *MockGithubClientMockRecorder) AddLabel(ctx, owner, repo, pullRequestOrIssueNumber, label any) *gomock.Call

AddLabel indicates an expected call of AddLabel.

func (*MockGithubClientMockRecorder) CreateIssueComment

func (mr *MockGithubClientMockRecorder) CreateIssueComment(ctx, owner, repo, issueOrPRNr, comment any) *gomock.Call

CreateIssueComment indicates an expected call of CreateIssueComment.

func (*MockGithubClientMockRecorder) ListPullRequests

func (mr *MockGithubClientMockRecorder) ListPullRequests(ctx, owner, repo, state, sort, sortDirection any) *gomock.Call

ListPullRequests indicates an expected call of ListPullRequests.

func (*MockGithubClientMockRecorder) ReadyForMerge added in v0.12.0

func (mr *MockGithubClientMockRecorder) ReadyForMerge(ctx, owner, repo, prNumber any) *gomock.Call

ReadyForMerge indicates an expected call of ReadyForMerge.

func (*MockGithubClientMockRecorder) RemoveLabel added in v0.13.0

func (mr *MockGithubClientMockRecorder) RemoveLabel(ctx, owner, repo, pullRequestOrIssueNumber, label any) *gomock.Call

RemoveLabel indicates an expected call of RemoveLabel.

func (*MockGithubClientMockRecorder) UpdateBranch

func (mr *MockGithubClientMockRecorder) UpdateBranch(ctx, owner, repo, pullRequestNumber any) *gomock.Call

UpdateBranch indicates an expected call of UpdateBranch.

type MockPRIterator

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

MockPRIterator is a mock of PRIterator interface.

func NewMockPRIterator

func NewMockPRIterator(ctrl *gomock.Controller) *MockPRIterator

NewMockPRIterator creates a new mock instance.

func (*MockPRIterator) EXPECT

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

func (*MockPRIterator) Next

func (m *MockPRIterator) Next() (*github.PullRequest, error)

Next mocks base method.

type MockPRIteratorMockRecorder

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

MockPRIteratorMockRecorder is the mock recorder for MockPRIterator.

func (*MockPRIteratorMockRecorder) Next

Next indicates an expected call of Next.

type MockRetryer

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

MockRetryer is a mock of Retryer interface.

func NewMockRetryer

func NewMockRetryer(ctrl *gomock.Controller) *MockRetryer

NewMockRetryer creates a new mock instance.

func (*MockRetryer) EXPECT

func (m *MockRetryer) EXPECT() *MockRetryerMockRecorder

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

func (*MockRetryer) Run

func (m *MockRetryer) Run(arg0 context.Context, arg1 func(context.Context) error, arg2 []zap.Field) error

Run mocks base method.

type MockRetryerMockRecorder

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

MockRetryerMockRecorder is the mock recorder for MockRetryer.

func (*MockRetryerMockRecorder) Run

func (mr *MockRetryerMockRecorder) Run(arg0, arg1, arg2 any) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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