Documentation
¶
Index ¶
- type MockGithubClient
- func (m *MockGithubClient) CompareCommits(ctx context.Context, owner, repo, base, head string, count int) (*github.CommitComparison, error)
- func (m *MockGithubClient) CreateRelease(ctx context.Context, owner, repo, tag, body string, prerelease bool) (*github.RepoRelease, error)
- func (m *MockGithubClient) DeleteRelease(ctx context.Context, owner, repo string, id int64) error
- func (m *MockGithubClient) EXPECT() *MockGithubClientMockRecorder
- func (m *MockGithubClient) GenerateReleaseNotes(ctx context.Context, owner, repo, tag, prevTag string) (string, error)
- func (m *MockGithubClient) GetPullRequest(ctx context.Context, owner, repo string, number int) (*github.BasePull, error)
- func (m *MockGithubClient) GetPullRequestCommits(ctx context.Context, owner, repo string, number int) ([]string, error)
- func (m *MockGithubClient) ListMergedPullsForCommit(ctx context.Context, owner, repo, sha string) ([]github.BasePull, error)
- func (m *MockGithubClient) PublishRelease(ctx context.Context, owner, repo string, id int64) error
- func (m *MockGithubClient) UploadAsset(ctx context.Context, uploadURL, filename string) error
- type MockGithubClientMockRecorder
- func (mr *MockGithubClientMockRecorder) CompareCommits(ctx, owner, repo, base, head, count any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) CreateRelease(ctx, owner, repo, tag, body, prerelease any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) DeleteRelease(ctx, owner, repo, id any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) GenerateReleaseNotes(ctx, owner, repo, tag, prevTag any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) GetPullRequest(ctx, owner, repo, number any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) GetPullRequestCommits(ctx, owner, repo, number any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) ListMergedPullsForCommit(ctx, owner, repo, sha any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) PublishRelease(ctx, owner, repo, id any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) UploadAsset(ctx, uploadURL, filename any) *gomock.Call
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 ¶
DeleteRelease mocks base method.
func (*MockGithubClient) EXPECT ¶
func (m *MockGithubClient) EXPECT() *MockGithubClientMockRecorder
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 ¶
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, 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.