Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockGitHubIFace
- func (m *MockGitHubIFace) CommentToPullRequest(ctx context.Context, pr gateways.PullRequest, comment string) error
- func (m *MockGitHubIFace) EXPECT() *MockGitHubIFaceMockRecorder
- func (m *MockGitHubIFace) GetCommitHashes(ctx context.Context, pr gateways.PullRequest) ([]string, error)
- func (m *MockGitHubIFace) GetPullRequest(ctx context.Context, org, repo string, prNum int) (*gateways.PullRequest, error)
- func (m *MockGitHubIFace) ListOpenPullRequests(ctx context.Context, org, repo string) ([]*gateways.PullRequest, error)
- func (m *MockGitHubIFace) WithCredential(username, token string) error
- type MockGitHubIFaceMockRecorder
- func (mr *MockGitHubIFaceMockRecorder) CommentToPullRequest(ctx, pr, comment interface{}) *gomock.Call
- func (mr *MockGitHubIFaceMockRecorder) GetCommitHashes(ctx, pr interface{}) *gomock.Call
- func (mr *MockGitHubIFaceMockRecorder) GetPullRequest(ctx, org, repo, prNum interface{}) *gomock.Call
- func (mr *MockGitHubIFaceMockRecorder) ListOpenPullRequests(ctx, org, repo interface{}) *gomock.Call
- func (mr *MockGitHubIFaceMockRecorder) WithCredential(username, token interface{}) *gomock.Call
- type MockGitIFace
- func (m *MockGitIFace) CommitAndPush(ctx context.Context, gp gateways.GitProject, message string) (*gateways.GitProject, error)
- func (m *MockGitIFace) CreateFile(ctx context.Context, gp gateways.GitProject, filename string, contents []byte) error
- func (m *MockGitIFace) DeleteFile(ctx context.Context, gp gateways.GitProject, filename string) error
- func (m *MockGitIFace) EXPECT() *MockGitIFaceMockRecorder
- func (m *MockGitIFace) ForceClone(ctx context.Context, org, repo, branch string) (*gateways.GitProject, error)
- func (m *MockGitIFace) WithCredential(username, token string) error
- type MockGitIFaceMockRecorder
- func (mr *MockGitIFaceMockRecorder) CommitAndPush(ctx, gp, message interface{}) *gomock.Call
- func (mr *MockGitIFaceMockRecorder) CreateFile(ctx, gp, filename, contents interface{}) *gomock.Call
- func (mr *MockGitIFaceMockRecorder) DeleteFile(ctx, gp, filename interface{}) *gomock.Call
- func (mr *MockGitIFaceMockRecorder) ForceClone(ctx, org, repo, branch interface{}) *gomock.Call
- func (mr *MockGitIFaceMockRecorder) WithCredential(username, token interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitHubIFace ¶
type MockGitHubIFace struct {
// contains filtered or unexported fields
}
MockGitHubIFace is a mock of GitHubIFace interface.
func NewMockGitHubIFace ¶
func NewMockGitHubIFace(ctrl *gomock.Controller) *MockGitHubIFace
NewMockGitHubIFace creates a new mock instance.
func (*MockGitHubIFace) CommentToPullRequest ¶
func (m *MockGitHubIFace) CommentToPullRequest(ctx context.Context, pr gateways.PullRequest, comment string) error
CommentToPullRequest mocks base method.
func (*MockGitHubIFace) EXPECT ¶
func (m *MockGitHubIFace) EXPECT() *MockGitHubIFaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitHubIFace) GetCommitHashes ¶
func (m *MockGitHubIFace) GetCommitHashes(ctx context.Context, pr gateways.PullRequest) ([]string, error)
GetCommitHashes mocks base method.
func (*MockGitHubIFace) GetPullRequest ¶
func (m *MockGitHubIFace) GetPullRequest(ctx context.Context, org, repo string, prNum int) (*gateways.PullRequest, error)
GetPullRequest mocks base method.
func (*MockGitHubIFace) ListOpenPullRequests ¶
func (m *MockGitHubIFace) ListOpenPullRequests(ctx context.Context, org, repo string) ([]*gateways.PullRequest, error)
ListOpenPullRequests mocks base method.
func (*MockGitHubIFace) WithCredential ¶
func (m *MockGitHubIFace) WithCredential(username, token string) error
WithCredential mocks base method.
type MockGitHubIFaceMockRecorder ¶
type MockGitHubIFaceMockRecorder struct {
// contains filtered or unexported fields
}
MockGitHubIFaceMockRecorder is the mock recorder for MockGitHubIFace.
func (*MockGitHubIFaceMockRecorder) CommentToPullRequest ¶
func (mr *MockGitHubIFaceMockRecorder) CommentToPullRequest(ctx, pr, comment interface{}) *gomock.Call
CommentToPullRequest indicates an expected call of CommentToPullRequest.
func (*MockGitHubIFaceMockRecorder) GetCommitHashes ¶
func (mr *MockGitHubIFaceMockRecorder) GetCommitHashes(ctx, pr interface{}) *gomock.Call
GetCommitHashes indicates an expected call of GetCommitHashes.
func (*MockGitHubIFaceMockRecorder) GetPullRequest ¶
func (mr *MockGitHubIFaceMockRecorder) GetPullRequest(ctx, org, repo, prNum interface{}) *gomock.Call
GetPullRequest indicates an expected call of GetPullRequest.
func (*MockGitHubIFaceMockRecorder) ListOpenPullRequests ¶
func (mr *MockGitHubIFaceMockRecorder) ListOpenPullRequests(ctx, org, repo interface{}) *gomock.Call
ListOpenPullRequests indicates an expected call of ListOpenPullRequests.
func (*MockGitHubIFaceMockRecorder) WithCredential ¶
func (mr *MockGitHubIFaceMockRecorder) WithCredential(username, token interface{}) *gomock.Call
WithCredential indicates an expected call of WithCredential.
type MockGitIFace ¶
type MockGitIFace struct {
// contains filtered or unexported fields
}
MockGitIFace is a mock of GitIFace interface.
func NewMockGitIFace ¶
func NewMockGitIFace(ctrl *gomock.Controller) *MockGitIFace
NewMockGitIFace creates a new mock instance.
func (*MockGitIFace) CommitAndPush ¶
func (m *MockGitIFace) CommitAndPush(ctx context.Context, gp gateways.GitProject, message string) (*gateways.GitProject, error)
CommitAndPush mocks base method.
func (*MockGitIFace) CreateFile ¶
func (m *MockGitIFace) CreateFile(ctx context.Context, gp gateways.GitProject, filename string, contents []byte) error
CreateFile mocks base method.
func (*MockGitIFace) DeleteFile ¶
func (m *MockGitIFace) DeleteFile(ctx context.Context, gp gateways.GitProject, filename string) error
DeleteFile mocks base method.
func (*MockGitIFace) EXPECT ¶
func (m *MockGitIFace) EXPECT() *MockGitIFaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitIFace) ForceClone ¶
func (m *MockGitIFace) ForceClone(ctx context.Context, org, repo, branch string) (*gateways.GitProject, error)
ForceClone mocks base method.
func (*MockGitIFace) WithCredential ¶
func (m *MockGitIFace) WithCredential(username, token string) error
WithCredential mocks base method.
type MockGitIFaceMockRecorder ¶
type MockGitIFaceMockRecorder struct {
// contains filtered or unexported fields
}
MockGitIFaceMockRecorder is the mock recorder for MockGitIFace.
func (*MockGitIFaceMockRecorder) CommitAndPush ¶
func (mr *MockGitIFaceMockRecorder) CommitAndPush(ctx, gp, message interface{}) *gomock.Call
CommitAndPush indicates an expected call of CommitAndPush.
func (*MockGitIFaceMockRecorder) CreateFile ¶
func (mr *MockGitIFaceMockRecorder) CreateFile(ctx, gp, filename, contents interface{}) *gomock.Call
CreateFile indicates an expected call of CreateFile.
func (*MockGitIFaceMockRecorder) DeleteFile ¶
func (mr *MockGitIFaceMockRecorder) DeleteFile(ctx, gp, filename interface{}) *gomock.Call
DeleteFile indicates an expected call of DeleteFile.
func (*MockGitIFaceMockRecorder) ForceClone ¶
func (mr *MockGitIFaceMockRecorder) ForceClone(ctx, org, repo, branch interface{}) *gomock.Call
ForceClone indicates an expected call of ForceClone.
func (*MockGitIFaceMockRecorder) WithCredential ¶
func (mr *MockGitIFaceMockRecorder) WithCredential(username, token interface{}) *gomock.Call
WithCredential indicates an expected call of WithCredential.