mock

package
v0.0.0-...-3fc36a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 5 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 MockClienter

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

MockClienter is a mock of Clienter interface.

func NewMockClienter

func NewMockClienter(ctrl *gomock.Controller) *MockClienter

NewMockClienter creates a new mock instance.

func (*MockClienter) AddLabel

func (m *MockClienter) AddLabel(ctx context.Context, label constant.Label) error

AddLabel mocks base method.

func (*MockClienter) AddLabelToOtherPR

func (m *MockClienter) AddLabelToOtherPR(ctx context.Context, label constant.Label, number int) error

AddLabelToOtherPR mocks base method.

func (*MockClienter) CreateComment

func (m *MockClienter) CreateComment(ctx context.Context, body string) error

CreateComment mocks base method.

func (*MockClienter) DeleteComment

func (m *MockClienter) DeleteComment(ctx context.Context, commentID int64) error

DeleteComment mocks base method.

func (*MockClienter) EXPECT

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

func (*MockClienter) GetOpenPullRequests

func (m *MockClienter) GetOpenPullRequests(ctx context.Context) ([]platform.PullRequest, error)

GetOpenPullRequests mocks base method.

func (*MockClienter) GetPullRequest

func (m *MockClienter) GetPullRequest(ctx context.Context) (*platform.PullRequest, error)

GetPullRequest mocks base method.

func (*MockClienter) ListComments

func (m *MockClienter) ListComments(ctx context.Context) ([]platform.Comment, error)

ListComments mocks base method.

func (*MockClienter) MergePullRequest

func (m *MockClienter) MergePullRequest(ctx context.Context, message string) error

MergePullRequest mocks base method.

func (*MockClienter) RemoveLabel

func (m *MockClienter) RemoveLabel(ctx context.Context, label constant.Label) error

RemoveLabel mocks base method.

func (*MockClienter) SetStatus

func (m *MockClienter) SetStatus(ctx context.Context, state constant.State, description string) error

SetStatus mocks base method.

type MockClienterMockRecorder

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

MockClienterMockRecorder is the mock recorder for MockClienter.

func (*MockClienterMockRecorder) AddLabel

func (mr *MockClienterMockRecorder) AddLabel(ctx, label any) *gomock.Call

AddLabel indicates an expected call of AddLabel.

func (*MockClienterMockRecorder) AddLabelToOtherPR

func (mr *MockClienterMockRecorder) AddLabelToOtherPR(ctx, label, number any) *gomock.Call

AddLabelToOtherPR indicates an expected call of AddLabelToOtherPR.

func (*MockClienterMockRecorder) CreateComment

func (mr *MockClienterMockRecorder) CreateComment(ctx, body any) *gomock.Call

CreateComment indicates an expected call of CreateComment.

func (*MockClienterMockRecorder) DeleteComment

func (mr *MockClienterMockRecorder) DeleteComment(ctx, commentID any) *gomock.Call

DeleteComment indicates an expected call of DeleteComment.

func (*MockClienterMockRecorder) GetOpenPullRequests

func (mr *MockClienterMockRecorder) GetOpenPullRequests(ctx any) *gomock.Call

GetOpenPullRequests indicates an expected call of GetOpenPullRequests.

func (*MockClienterMockRecorder) GetPullRequest

func (mr *MockClienterMockRecorder) GetPullRequest(ctx any) *gomock.Call

GetPullRequest indicates an expected call of GetPullRequest.

func (*MockClienterMockRecorder) ListComments

func (mr *MockClienterMockRecorder) ListComments(ctx any) *gomock.Call

ListComments indicates an expected call of ListComments.

func (*MockClienterMockRecorder) MergePullRequest

func (mr *MockClienterMockRecorder) MergePullRequest(ctx, message any) *gomock.Call

MergePullRequest indicates an expected call of MergePullRequest.

func (*MockClienterMockRecorder) RemoveLabel

func (mr *MockClienterMockRecorder) RemoveLabel(ctx, label any) *gomock.Call

RemoveLabel indicates an expected call of RemoveLabel.

func (*MockClienterMockRecorder) SetStatus

func (mr *MockClienterMockRecorder) SetStatus(ctx, state, description any) *gomock.Call

SetStatus indicates an expected call of SetStatus.

Jump to

Keyboard shortcuts

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