mocks

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 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.

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

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

AddLabel mocks base method.

func (*MockGithubClient) CreateCommitStatus

func (m *MockGithubClient) CreateCommitStatus(ctx context.Context, owner, repo, commit string, state githubclt.StatusState, description, context string) error

CreateCommitStatus mocks base method.

func (*MockGithubClient) CreateHeadCommitStatus

func (m *MockGithubClient) CreateHeadCommitStatus(ctx context.Context, owner, repo string, pullRequestNumber int, state githubclt.StatusState, description, context string) error

CreateHeadCommitStatus 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) ListPRs

func (m *MockGithubClient) ListPRs(ctx context.Context, owner, repo string) iter.Seq2[*githubclt.PR, error]

ListPRs mocks base method.

func (*MockGithubClient) ReadyForMerge

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

ReadyForMerge mocks base method.

func (*MockGithubClient) RemoveLabel

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

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

AddLabel indicates an expected call of AddLabel.

func (*MockGithubClientMockRecorder) CreateCommitStatus

func (mr *MockGithubClientMockRecorder) CreateCommitStatus(ctx, owner, repo, commit, state, description, context any) *gomock.Call

CreateCommitStatus indicates an expected call of CreateCommitStatus.

func (*MockGithubClientMockRecorder) CreateHeadCommitStatus

func (mr *MockGithubClientMockRecorder) CreateHeadCommitStatus(ctx, owner, repo, pullRequestNumber, state, description, context any) *gomock.Call

CreateHeadCommitStatus indicates an expected call of CreateHeadCommitStatus.

func (*MockGithubClientMockRecorder) CreateIssueComment

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

CreateIssueComment indicates an expected call of CreateIssueComment.

func (*MockGithubClientMockRecorder) ListPRs

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

ListPRs indicates an expected call of ListPRs.

func (*MockGithubClientMockRecorder) ReadyForMerge

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

ReadyForMerge indicates an expected call of ReadyForMerge.

func (*MockGithubClientMockRecorder) RemoveLabel

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 MockJenkinsClient

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

MockJenkinsClient is a mock of JenkinsClient interface.

func NewMockJenkinsClient

func NewMockJenkinsClient(ctrl *gomock.Controller) *MockJenkinsClient

NewMockJenkinsClient creates a new mock instance.

func (*MockJenkinsClient) Build

func (m *MockJenkinsClient) Build(arg0 context.Context, arg1 *jenkins.Job) (int64, error)

Build mocks base method.

func (*MockJenkinsClient) EXPECT

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

func (*MockJenkinsClient) GetBuildFromQueueItemID

func (m *MockJenkinsClient) GetBuildFromQueueItemID(arg0 context.Context, arg1 int64) (*jenkins.Build, error)

GetBuildFromQueueItemID mocks base method.

func (*MockJenkinsClient) String

func (m *MockJenkinsClient) String() string

String mocks base method.

type MockJenkinsClientMockRecorder

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

MockJenkinsClientMockRecorder is the mock recorder for MockJenkinsClient.

func (*MockJenkinsClientMockRecorder) Build

func (mr *MockJenkinsClientMockRecorder) Build(arg0, arg1 any) *gomock.Call

Build indicates an expected call of Build.

func (*MockJenkinsClientMockRecorder) GetBuildFromQueueItemID

func (mr *MockJenkinsClientMockRecorder) GetBuildFromQueueItemID(arg0, arg1 any) *gomock.Call

GetBuildFromQueueItemID indicates an expected call of GetBuildFromQueueItemID.

func (*MockJenkinsClientMockRecorder) String

String indicates an expected call of String.

Jump to

Keyboard shortcuts

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