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: 6 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 MockActions

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

MockActions is a mock of Actions interface.

func NewMockActions

func NewMockActions(ctrl *gomock.Controller) *MockActions

NewMockActions creates a new mock instance.

func (*MockActions) DeleteArtifact

func (m *MockActions) DeleteArtifact(ctx context.Context, owner, repo string, artifactID int64) (*github.Response, error)

DeleteArtifact mocks base method.

func (*MockActions) DownloadArtifact

func (m *MockActions) DownloadArtifact(ctx context.Context, owner, repo string, artifactID int64, maxRedirects int) (*url.URL, *github.Response, error)

DownloadArtifact mocks base method.

func (*MockActions) EXPECT

func (m *MockActions) EXPECT() *MockActionsMockRecorder

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

func (*MockActions) ListArtifacts

func (m *MockActions) ListArtifacts(ctx context.Context, owner, repo string, opts *github.ListArtifactsOptions) (*github.ArtifactList, *github.Response, error)

ListArtifacts mocks base method.

type MockActionsMockRecorder

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

MockActionsMockRecorder is the mock recorder for MockActions.

func (*MockActionsMockRecorder) DeleteArtifact

func (mr *MockActionsMockRecorder) DeleteArtifact(ctx, owner, repo, artifactID any) *gomock.Call

DeleteArtifact indicates an expected call of DeleteArtifact.

func (*MockActionsMockRecorder) DownloadArtifact

func (mr *MockActionsMockRecorder) DownloadArtifact(ctx, owner, repo, artifactID, maxRedirects any) *gomock.Call

DownloadArtifact indicates an expected call of DownloadArtifact.

func (*MockActionsMockRecorder) ListArtifacts

func (mr *MockActionsMockRecorder) ListArtifacts(ctx, owner, repo, opts any) *gomock.Call

ListArtifacts indicates an expected call of ListArtifacts.

type MockGraphQL

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

MockGraphQL is a mock of GraphQL interface.

func NewMockGraphQL

func NewMockGraphQL(ctrl *gomock.Controller) *MockGraphQL

NewMockGraphQL creates a new mock instance.

func (*MockGraphQL) EXPECT

func (m *MockGraphQL) EXPECT() *MockGraphQLMockRecorder

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

func (*MockGraphQL) Mutate

func (m *MockGraphQL) Mutate(ctx context.Context, mutate any, input githubv4.Input, variables map[string]any) error

Mutate mocks base method.

func (*MockGraphQL) Query

func (m *MockGraphQL) Query(ctx context.Context, query any, variables map[string]any) error

Query mocks base method.

type MockGraphQLMockRecorder

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

MockGraphQLMockRecorder is the mock recorder for MockGraphQL.

func (*MockGraphQLMockRecorder) Mutate

func (mr *MockGraphQLMockRecorder) Mutate(ctx, mutate, input, variables any) *gomock.Call

Mutate indicates an expected call of Mutate.

func (*MockGraphQLMockRecorder) Query

func (mr *MockGraphQLMockRecorder) Query(ctx, query, variables any) *gomock.Call

Query indicates an expected call of Query.

type MockIssues

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

MockIssues is a mock of Issues interface.

func NewMockIssues

func NewMockIssues(ctrl *gomock.Controller) *MockIssues

NewMockIssues creates a new mock instance.

func (*MockIssues) AddLabelsToIssue

func (m *MockIssues) AddLabelsToIssue(ctx context.Context, owner, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)

AddLabelsToIssue mocks base method.

func (*MockIssues) CreateComment

func (m *MockIssues) CreateComment(ctx context.Context, owner, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

CreateComment mocks base method.

func (*MockIssues) CreateLabel

func (m *MockIssues) CreateLabel(ctx context.Context, owner, resp string, label *github.Label) (*github.Label, *github.Response, error)

CreateLabel mocks base method.

func (*MockIssues) DeleteLabel

func (m *MockIssues) DeleteLabel(ctx context.Context, owner, repo, name string) (*github.Response, error)

DeleteLabel mocks base method.

func (*MockIssues) EXPECT

func (m *MockIssues) EXPECT() *MockIssuesMockRecorder

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

func (*MockIssues) GetLabel

func (m *MockIssues) GetLabel(ctx context.Context, owner, repo, name string) (*github.Label, *github.Response, error)

GetLabel mocks base method.

type MockIssuesMockRecorder

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

MockIssuesMockRecorder is the mock recorder for MockIssues.

func (*MockIssuesMockRecorder) AddLabelsToIssue

func (mr *MockIssuesMockRecorder) AddLabelsToIssue(ctx, owner, repo, number, labels any) *gomock.Call

AddLabelsToIssue indicates an expected call of AddLabelsToIssue.

func (*MockIssuesMockRecorder) CreateComment

func (mr *MockIssuesMockRecorder) CreateComment(ctx, owner, repo, number, comment any) *gomock.Call

CreateComment indicates an expected call of CreateComment.

func (*MockIssuesMockRecorder) CreateLabel

func (mr *MockIssuesMockRecorder) CreateLabel(ctx, owner, resp, label any) *gomock.Call

CreateLabel indicates an expected call of CreateLabel.

func (*MockIssuesMockRecorder) DeleteLabel

func (mr *MockIssuesMockRecorder) DeleteLabel(ctx, owner, repo, name any) *gomock.Call

DeleteLabel indicates an expected call of DeleteLabel.

func (*MockIssuesMockRecorder) GetLabel

func (mr *MockIssuesMockRecorder) GetLabel(ctx, owner, repo, name any) *gomock.Call

GetLabel indicates an expected call of GetLabel.

type MockPullRequests

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

MockPullRequests is a mock of PullRequests interface.

func NewMockPullRequests

func NewMockPullRequests(ctrl *gomock.Controller) *MockPullRequests

NewMockPullRequests creates a new mock instance.

func (*MockPullRequests) EXPECT

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

func (*MockPullRequests) Get

func (m *MockPullRequests) Get(ctx context.Context, owner, repo string, number int) (*github.PullRequest, *github.Response, error)

Get mocks base method.

func (*MockPullRequests) List

List mocks base method.

func (*MockPullRequests) ListFiles

func (m *MockPullRequests) ListFiles(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.CommitFile, *github.Response, error)

ListFiles mocks base method.

func (*MockPullRequests) ListReviews

func (m *MockPullRequests) ListReviews(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.PullRequestReview, *github.Response, error)

ListReviews mocks base method.

type MockPullRequestsMockRecorder

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

MockPullRequestsMockRecorder is the mock recorder for MockPullRequests.

func (*MockPullRequestsMockRecorder) Get

func (mr *MockPullRequestsMockRecorder) Get(ctx, owner, repo, number any) *gomock.Call

Get indicates an expected call of Get.

func (*MockPullRequestsMockRecorder) List

func (mr *MockPullRequestsMockRecorder) List(ctx, owner, repo, opts any) *gomock.Call

List indicates an expected call of List.

func (*MockPullRequestsMockRecorder) ListFiles

func (mr *MockPullRequestsMockRecorder) ListFiles(ctx, owner, repo, number, opts any) *gomock.Call

ListFiles indicates an expected call of ListFiles.

func (*MockPullRequestsMockRecorder) ListReviews

func (mr *MockPullRequestsMockRecorder) ListReviews(ctx, owner, repo, number, opts any) *gomock.Call

ListReviews indicates an expected call of ListReviews.

type MockReactions

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

MockReactions is a mock of Reactions interface.

func NewMockReactions

func NewMockReactions(ctrl *gomock.Controller) *MockReactions

NewMockReactions creates a new mock instance.

func (*MockReactions) CreateIssueCommentReaction

func (m *MockReactions) CreateIssueCommentReaction(ctx context.Context, owner, repo string, commentID int64, content string) (*github.Reaction, *github.Response, error)

CreateIssueCommentReaction mocks base method.

func (*MockReactions) EXPECT

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

type MockReactionsMockRecorder

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

MockReactionsMockRecorder is the mock recorder for MockReactions.

func (*MockReactionsMockRecorder) CreateIssueCommentReaction

func (mr *MockReactionsMockRecorder) CreateIssueCommentReaction(ctx, owner, repo, commentID, content any) *gomock.Call

CreateIssueCommentReaction indicates an expected call of CreateIssueCommentReaction.

type MockRepositories

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

MockRepositories is a mock of Repositories interface.

func NewMockRepositories

func NewMockRepositories(ctrl *gomock.Controller) *MockRepositories

NewMockRepositories creates a new mock instance.

func (*MockRepositories) CreateStatus

func (m *MockRepositories) CreateStatus(ctx context.Context, owner, repo, ref string, status *github.RepoStatus) (*github.RepoStatus, *github.Response, error)

CreateStatus mocks base method.

func (*MockRepositories) EXPECT

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

type MockRepositoriesMockRecorder

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

MockRepositoriesMockRecorder is the mock recorder for MockRepositories.

func (*MockRepositoriesMockRecorder) CreateStatus

func (mr *MockRepositoriesMockRecorder) CreateStatus(ctx, owner, repo, ref, status any) *gomock.Call

CreateStatus indicates an expected call of CreateStatus.

Jump to

Keyboard shortcuts

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