Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockGithubClient
- func (m *MockGithubClient) AddLabel(ctx context.Context, owner, repo string, pullRequestOrIssueNumber int, ...) error
- func (m *MockGithubClient) CreateIssueComment(ctx context.Context, owner, repo string, issueOrPRNr int, comment string) error
- func (m *MockGithubClient) EXPECT() *MockGithubClientMockRecorder
- func (m *MockGithubClient) ListPullRequests(ctx context.Context, owner, repo, state, sort, sortDirection string) githubclt.PRIterator
- func (m *MockGithubClient) ReadyForMerge(ctx context.Context, owner, repo string, prNumber int) (*githubclt.ReadyForMergeStatus, error)
- func (m *MockGithubClient) RemoveLabel(ctx context.Context, owner, repo string, pullRequestOrIssueNumber int, ...) error
- func (m *MockGithubClient) UpdateBranch(ctx context.Context, owner, repo string, pullRequestNumber int) (*githubclt.UpdateBranchResult, error)
- type MockGithubClientMockRecorder
- func (mr *MockGithubClientMockRecorder) AddLabel(ctx, owner, repo, pullRequestOrIssueNumber, label any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) CreateIssueComment(ctx, owner, repo, issueOrPRNr, comment any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) ListPullRequests(ctx, owner, repo, state, sort, sortDirection any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) ReadyForMerge(ctx, owner, repo, prNumber any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) RemoveLabel(ctx, owner, repo, pullRequestOrIssueNumber, label any) *gomock.Call
- func (mr *MockGithubClientMockRecorder) UpdateBranch(ctx, owner, repo, pullRequestNumber any) *gomock.Call
- type MockPRIterator
- type MockPRIteratorMockRecorder
- type MockRetryer
- type MockRetryerMockRecorder
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) AddLabel ¶ added in v0.13.0
func (m *MockGithubClient) AddLabel(ctx context.Context, owner, repo string, pullRequestOrIssueNumber int, label string) error
AddLabel mocks base method.
func (*MockGithubClient) CreateIssueComment ¶
func (m *MockGithubClient) CreateIssueComment(ctx context.Context, owner, repo string, issueOrPRNr int, comment string) error
CreateIssueComment 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) ListPullRequests ¶
func (m *MockGithubClient) ListPullRequests(ctx context.Context, owner, repo, state, sort, sortDirection string) githubclt.PRIterator
ListPullRequests mocks base method.
func (*MockGithubClient) ReadyForMerge ¶ added in v0.12.0
func (m *MockGithubClient) ReadyForMerge(ctx context.Context, owner, repo string, prNumber int) (*githubclt.ReadyForMergeStatus, error)
ReadyForMerge mocks base method.
func (*MockGithubClient) RemoveLabel ¶ added in v0.13.0
func (m *MockGithubClient) RemoveLabel(ctx context.Context, owner, repo string, pullRequestOrIssueNumber int, label string) error
RemoveLabel mocks base method.
func (*MockGithubClient) UpdateBranch ¶
func (m *MockGithubClient) UpdateBranch(ctx context.Context, owner, repo string, pullRequestNumber int) (*githubclt.UpdateBranchResult, error)
UpdateBranch mocks base method.
type MockGithubClientMockRecorder ¶
type MockGithubClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGithubClientMockRecorder is the mock recorder for MockGithubClient.
func (*MockGithubClientMockRecorder) AddLabel ¶ added in v0.13.0
func (mr *MockGithubClientMockRecorder) AddLabel(ctx, owner, repo, pullRequestOrIssueNumber, label any) *gomock.Call
AddLabel indicates an expected call of AddLabel.
func (*MockGithubClientMockRecorder) CreateIssueComment ¶
func (mr *MockGithubClientMockRecorder) CreateIssueComment(ctx, owner, repo, issueOrPRNr, comment any) *gomock.Call
CreateIssueComment indicates an expected call of CreateIssueComment.
func (*MockGithubClientMockRecorder) ListPullRequests ¶
func (mr *MockGithubClientMockRecorder) ListPullRequests(ctx, owner, repo, state, sort, sortDirection any) *gomock.Call
ListPullRequests indicates an expected call of ListPullRequests.
func (*MockGithubClientMockRecorder) ReadyForMerge ¶ added in v0.12.0
func (mr *MockGithubClientMockRecorder) ReadyForMerge(ctx, owner, repo, prNumber any) *gomock.Call
ReadyForMerge indicates an expected call of ReadyForMerge.
func (*MockGithubClientMockRecorder) RemoveLabel ¶ added in v0.13.0
func (mr *MockGithubClientMockRecorder) RemoveLabel(ctx, owner, repo, pullRequestOrIssueNumber, label any) *gomock.Call
RemoveLabel indicates an expected call of RemoveLabel.
func (*MockGithubClientMockRecorder) UpdateBranch ¶
func (mr *MockGithubClientMockRecorder) UpdateBranch(ctx, owner, repo, pullRequestNumber any) *gomock.Call
UpdateBranch indicates an expected call of UpdateBranch.
type MockPRIterator ¶
type MockPRIterator struct {
// contains filtered or unexported fields
}
MockPRIterator is a mock of PRIterator interface.
func NewMockPRIterator ¶
func NewMockPRIterator(ctrl *gomock.Controller) *MockPRIterator
NewMockPRIterator creates a new mock instance.
func (*MockPRIterator) EXPECT ¶
func (m *MockPRIterator) EXPECT() *MockPRIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPRIterator) Next ¶
func (m *MockPRIterator) Next() (*github.PullRequest, error)
Next mocks base method.
type MockPRIteratorMockRecorder ¶
type MockPRIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockPRIteratorMockRecorder is the mock recorder for MockPRIterator.
func (*MockPRIteratorMockRecorder) Next ¶
func (mr *MockPRIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
type MockRetryer ¶
type MockRetryer struct {
// contains filtered or unexported fields
}
MockRetryer is a mock of Retryer interface.
func NewMockRetryer ¶
func NewMockRetryer(ctrl *gomock.Controller) *MockRetryer
NewMockRetryer creates a new mock instance.
func (*MockRetryer) EXPECT ¶
func (m *MockRetryer) EXPECT() *MockRetryerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRetryerMockRecorder ¶
type MockRetryerMockRecorder struct {
// contains filtered or unexported fields
}
MockRetryerMockRecorder is the mock recorder for MockRetryer.