mocks

package
v3.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

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) CompareCommits

func (m *MockGithubClient) CompareCommits(ctx context.Context, owner, repo, base, head string, count int) (*github.CommitComparison, error)

CompareCommits mocks base method.

func (*MockGithubClient) CreateRelease

func (m *MockGithubClient) CreateRelease(ctx context.Context, owner, repo, tag, body string, prerelease bool) (*github.RepoRelease, error)

CreateRelease mocks base method.

func (*MockGithubClient) DeleteRelease

func (m *MockGithubClient) DeleteRelease(ctx context.Context, owner, repo string, id int64) error

DeleteRelease mocks base method.

func (*MockGithubClient) EXPECT

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

func (*MockGithubClient) GenerateReleaseNotes

func (m *MockGithubClient) GenerateReleaseNotes(ctx context.Context, owner, repo, tag, prevTag string) (string, error)

GenerateReleaseNotes mocks base method.

func (*MockGithubClient) GetPullRequest

func (m *MockGithubClient) GetPullRequest(ctx context.Context, owner, repo string, number int) (*github.BasePull, error)

GetPullRequest mocks base method.

func (*MockGithubClient) GetPullRequestCommits

func (m *MockGithubClient) GetPullRequestCommits(ctx context.Context, owner, repo string, number int) ([]string, error)

GetPullRequestCommits mocks base method.

func (*MockGithubClient) ListMergedPullsForCommit

func (m *MockGithubClient) ListMergedPullsForCommit(ctx context.Context, owner, repo, sha string) ([]github.BasePull, error)

ListMergedPullsForCommit mocks base method.

func (*MockGithubClient) PublishRelease

func (m *MockGithubClient) PublishRelease(ctx context.Context, owner, repo, makeLatest string, id int64) error

PublishRelease mocks base method.

func (*MockGithubClient) UploadAsset

func (m *MockGithubClient) UploadAsset(ctx context.Context, uploadURL, filename string) error

UploadAsset mocks base method.

type MockGithubClientMockRecorder

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

MockGithubClientMockRecorder is the mock recorder for MockGithubClient.

func (*MockGithubClientMockRecorder) CompareCommits

func (mr *MockGithubClientMockRecorder) CompareCommits(ctx, owner, repo, base, head, count any) *gomock.Call

CompareCommits indicates an expected call of CompareCommits.

func (*MockGithubClientMockRecorder) CreateRelease

func (mr *MockGithubClientMockRecorder) CreateRelease(ctx, owner, repo, tag, body, prerelease any) *gomock.Call

CreateRelease indicates an expected call of CreateRelease.

func (*MockGithubClientMockRecorder) DeleteRelease

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

DeleteRelease indicates an expected call of DeleteRelease.

func (*MockGithubClientMockRecorder) GenerateReleaseNotes

func (mr *MockGithubClientMockRecorder) GenerateReleaseNotes(ctx, owner, repo, tag, prevTag any) *gomock.Call

GenerateReleaseNotes indicates an expected call of GenerateReleaseNotes.

func (*MockGithubClientMockRecorder) GetPullRequest

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

GetPullRequest indicates an expected call of GetPullRequest.

func (*MockGithubClientMockRecorder) GetPullRequestCommits

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

GetPullRequestCommits indicates an expected call of GetPullRequestCommits.

func (*MockGithubClientMockRecorder) ListMergedPullsForCommit

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

ListMergedPullsForCommit indicates an expected call of ListMergedPullsForCommit.

func (*MockGithubClientMockRecorder) PublishRelease

func (mr *MockGithubClientMockRecorder) PublishRelease(ctx, owner, repo, makeLatest, id any) *gomock.Call

PublishRelease indicates an expected call of PublishRelease.

func (*MockGithubClientMockRecorder) UploadAsset

func (mr *MockGithubClientMockRecorder) UploadAsset(ctx, uploadURL, filename any) *gomock.Call

UploadAsset indicates an expected call of UploadAsset.

Jump to

Keyboard shortcuts

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