mock

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT 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 MockEvent

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

MockEvent is a mock of Event interface.

func NewMockEvent

func NewMockEvent(ctrl *gomock.Controller) *MockEvent

NewMockEvent creates a new mock instance.

func (*MockEvent) EXPECT

func (m *MockEvent) EXPECT() *MockEventMockRecorder

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

func (*MockEvent) Number

func (m *MockEvent) Number() int

Number mocks base method.

type MockEventMockRecorder

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

MockEventMockRecorder is the mock recorder for MockEvent.

func (*MockEventMockRecorder) Number

func (mr *MockEventMockRecorder) Number() *gomock.Call

Number indicates an expected call of Number.

type MockGithub

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

MockGithub is a mock of Github interface.

func NewMockGithub

func NewMockGithub(ctrl *gomock.Controller) *MockGithub

NewMockGithub creates a new mock instance.

func (*MockGithub) AddPullRequestLabels

func (m *MockGithub) AddPullRequestLabels(ctx context.Context, number int, labels []string) error

AddPullRequestLabels mocks base method.

func (*MockGithub) CreateCommitStatus

func (m *MockGithub) CreateCommitStatus(ctx context.Context, commitStatus *github.CommitStatus) error

CreateCommitStatus mocks base method.

func (*MockGithub) CreateIssueComment

func (m *MockGithub) CreateIssueComment(ctx context.Context, number int, body string) error

CreateIssueComment mocks base method.

func (*MockGithub) CreateIssueCommentReaction

func (m *MockGithub) CreateIssueCommentReaction(ctx context.Context, commentID int64, content string) error

CreateIssueCommentReaction mocks base method.

func (*MockGithub) CreateLabel

func (m *MockGithub) CreateLabel(ctx context.Context, name, description, color string) error

CreateLabel mocks base method.

func (*MockGithub) DeleteArtifactsByNames

func (m *MockGithub) DeleteArtifactsByNames(ctx context.Context, names []string) error

DeleteArtifactsByNames mocks base method.

func (*MockGithub) DeleteLabel

func (m *MockGithub) DeleteLabel(ctx context.Context, label string) error

DeleteLabel mocks base method.

func (*MockGithub) DownloadArtifact

func (m *MockGithub) DownloadArtifact(ctx context.Context, id int64, file io.Writer) error

DownloadArtifact mocks base method.

func (*MockGithub) EXPECT

func (m *MockGithub) EXPECT() *MockGithubMockRecorder

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

func (*MockGithub) Event

func (m *MockGithub) Event() (github.Event, error)

Event mocks base method.

func (*MockGithub) FindPullRequestByLabel

func (m *MockGithub) FindPullRequestByLabel(ctx context.Context, label string) (*github.PullRequest, error)

FindPullRequestByLabel mocks base method.

func (*MockGithub) GetLabel

func (m *MockGithub) GetLabel(ctx context.Context, label string) (*github.Label, error)

GetLabel mocks base method.

func (*MockGithub) GetPullRequest

func (m *MockGithub) GetPullRequest(ctx context.Context, number int) (*github.PullRequest, error)

GetPullRequest mocks base method.

func (*MockGithub) HideIssueComment

func (m *MockGithub) HideIssueComment(ctx context.Context, nodeID string) error

HideIssueComment mocks base method.

func (*MockGithub) ListFiles

func (m *MockGithub) ListFiles(ctx context.Context, number int) ([]string, error)

ListFiles mocks base method.

func (*MockGithub) ListPullRequestComments

func (m *MockGithub) ListPullRequestComments(ctx context.Context, number int) ([]*github.Comment, error)

ListPullRequestComments mocks base method.

func (*MockGithub) ListPullRequestsByLabel

func (m *MockGithub) ListPullRequestsByLabel(ctx context.Context, label string, limit int) ([]*github.PullRequest, error)

ListPullRequestsByLabel mocks base method.

func (*MockGithub) ListReviews

func (m *MockGithub) ListReviews(ctx context.Context, number int) (github.Reviews, error)

ListReviews mocks base method.

func (*MockGithub) MultiGetArtifactsByNames

func (m *MockGithub) MultiGetArtifactsByNames(ctx context.Context, names []string) (github.Artifacts, error)

MultiGetArtifactsByNames mocks base method.

type MockGithubMockRecorder

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

MockGithubMockRecorder is the mock recorder for MockGithub.

func (*MockGithubMockRecorder) AddPullRequestLabels

func (mr *MockGithubMockRecorder) AddPullRequestLabels(ctx, number, labels any) *gomock.Call

AddPullRequestLabels indicates an expected call of AddPullRequestLabels.

func (*MockGithubMockRecorder) CreateCommitStatus

func (mr *MockGithubMockRecorder) CreateCommitStatus(ctx, commitStatus any) *gomock.Call

CreateCommitStatus indicates an expected call of CreateCommitStatus.

func (*MockGithubMockRecorder) CreateIssueComment

func (mr *MockGithubMockRecorder) CreateIssueComment(ctx, number, body any) *gomock.Call

CreateIssueComment indicates an expected call of CreateIssueComment.

func (*MockGithubMockRecorder) CreateIssueCommentReaction

func (mr *MockGithubMockRecorder) CreateIssueCommentReaction(ctx, commentID, content any) *gomock.Call

CreateIssueCommentReaction indicates an expected call of CreateIssueCommentReaction.

func (*MockGithubMockRecorder) CreateLabel

func (mr *MockGithubMockRecorder) CreateLabel(ctx, name, description, color any) *gomock.Call

CreateLabel indicates an expected call of CreateLabel.

func (*MockGithubMockRecorder) DeleteArtifactsByNames

func (mr *MockGithubMockRecorder) DeleteArtifactsByNames(ctx, names any) *gomock.Call

DeleteArtifactsByNames indicates an expected call of DeleteArtifactsByNames.

func (*MockGithubMockRecorder) DeleteLabel

func (mr *MockGithubMockRecorder) DeleteLabel(ctx, label any) *gomock.Call

DeleteLabel indicates an expected call of DeleteLabel.

func (*MockGithubMockRecorder) DownloadArtifact

func (mr *MockGithubMockRecorder) DownloadArtifact(ctx, id, file any) *gomock.Call

DownloadArtifact indicates an expected call of DownloadArtifact.

func (*MockGithubMockRecorder) Event

func (mr *MockGithubMockRecorder) Event() *gomock.Call

Event indicates an expected call of Event.

func (*MockGithubMockRecorder) FindPullRequestByLabel

func (mr *MockGithubMockRecorder) FindPullRequestByLabel(ctx, label any) *gomock.Call

FindPullRequestByLabel indicates an expected call of FindPullRequestByLabel.

func (*MockGithubMockRecorder) GetLabel

func (mr *MockGithubMockRecorder) GetLabel(ctx, label any) *gomock.Call

GetLabel indicates an expected call of GetLabel.

func (*MockGithubMockRecorder) GetPullRequest

func (mr *MockGithubMockRecorder) GetPullRequest(ctx, number any) *gomock.Call

GetPullRequest indicates an expected call of GetPullRequest.

func (*MockGithubMockRecorder) HideIssueComment

func (mr *MockGithubMockRecorder) HideIssueComment(ctx, nodeID any) *gomock.Call

HideIssueComment indicates an expected call of HideIssueComment.

func (*MockGithubMockRecorder) ListFiles

func (mr *MockGithubMockRecorder) ListFiles(ctx, number any) *gomock.Call

ListFiles indicates an expected call of ListFiles.

func (*MockGithubMockRecorder) ListPullRequestComments

func (mr *MockGithubMockRecorder) ListPullRequestComments(ctx, number any) *gomock.Call

ListPullRequestComments indicates an expected call of ListPullRequestComments.

func (*MockGithubMockRecorder) ListPullRequestsByLabel

func (mr *MockGithubMockRecorder) ListPullRequestsByLabel(ctx, label, limit any) *gomock.Call

ListPullRequestsByLabel indicates an expected call of ListPullRequestsByLabel.

func (*MockGithubMockRecorder) ListReviews

func (mr *MockGithubMockRecorder) ListReviews(ctx, number any) *gomock.Call

ListReviews indicates an expected call of ListReviews.

func (*MockGithubMockRecorder) MultiGetArtifactsByNames

func (mr *MockGithubMockRecorder) MultiGetArtifactsByNames(ctx, names any) *gomock.Call

MultiGetArtifactsByNames indicates an expected call of MultiGetArtifactsByNames.

Jump to

Keyboard shortcuts

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