Documentation ¶
Overview ¶
Package github is a generated GoMock package.
Index ¶
- Variables
- func IsRecoverableError(err error) bool
- type Client
- type Context
- type MockClient
- func (m *MockClient) CreateReview(ctx context.Context, c *Context, review *github0.PullRequestReviewRequest) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetPullRequest(ctx context.Context, c *Context) (*github0.PullRequest, error)
- func (m *MockClient) GetPullRequestComments(ctx context.Context, c *Context) ([]*github0.PullRequestComment, error)
- func (m *MockClient) GetPullRequestPatch(ctx context.Context, c *Context) (string, error)
- func (m *MockClient) SetCommitStatus(ctx context.Context, c *Context, ref string, status Status, desc, url string) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) CreateReview(ctx, c, review interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetPullRequest(ctx, c interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetPullRequestComments(ctx, c interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetPullRequestPatch(ctx, c interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SetCommitStatus(ctx, c, ref, status, desc, url interface{}) *gomock.Call
- type MyClient
- func (gc *MyClient) CreateReview(ctx context.Context, c *Context, review *gh.PullRequestReviewRequest) error
- func (gc *MyClient) GetPullRequest(ctx context.Context, c *Context) (*gh.PullRequest, error)
- func (gc *MyClient) GetPullRequestComments(ctx context.Context, c *Context) ([]*gh.PullRequestComment, error)
- func (gc *MyClient) GetPullRequestPatch(ctx context.Context, c *Context) (string, error)
- func (gc *MyClient) SetCommitStatus(ctx context.Context, c *Context, ref string, status Status, desc, url string) error
- type Repo
- type Status
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsRecoverableError ¶
Types ¶
type Client ¶
type Client interface { GetPullRequest(ctx context.Context, c *Context) (*gh.PullRequest, error) GetPullRequestComments(ctx context.Context, c *Context) ([]*gh.PullRequestComment, error) GetPullRequestPatch(ctx context.Context, c *Context) (string, error) CreateReview(ctx context.Context, c *Context, review *gh.PullRequestReviewRequest) error SetCommitStatus(ctx context.Context, c *Context, ref string, status Status, desc, url string) error }
type Context ¶
func (Context) GetCloneURL ¶
func (c Context) GetCloneURL(repo *gh.Repository) string
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) CreateReview ¶
func (m *MockClient) CreateReview(ctx context.Context, c *Context, review *github0.PullRequestReviewRequest) error
CreateReview mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) GetPullRequest ¶
func (m *MockClient) GetPullRequest(ctx context.Context, c *Context) (*github0.PullRequest, error)
GetPullRequest mocks base method
func (*MockClient) GetPullRequestComments ¶
func (m *MockClient) GetPullRequestComments(ctx context.Context, c *Context) ([]*github0.PullRequestComment, error)
GetPullRequestComments mocks base method
func (*MockClient) GetPullRequestPatch ¶
GetPullRequestPatch mocks base method
func (*MockClient) SetCommitStatus ¶
func (m *MockClient) SetCommitStatus(ctx context.Context, c *Context, ref string, status Status, desc, url string) error
SetCommitStatus mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) CreateReview ¶
func (mr *MockClientMockRecorder) CreateReview(ctx, c, review interface{}) *gomock.Call
CreateReview indicates an expected call of CreateReview
func (*MockClientMockRecorder) GetPullRequest ¶
func (mr *MockClientMockRecorder) GetPullRequest(ctx, c interface{}) *gomock.Call
GetPullRequest indicates an expected call of GetPullRequest
func (*MockClientMockRecorder) GetPullRequestComments ¶
func (mr *MockClientMockRecorder) GetPullRequestComments(ctx, c interface{}) *gomock.Call
GetPullRequestComments indicates an expected call of GetPullRequestComments
func (*MockClientMockRecorder) GetPullRequestPatch ¶
func (mr *MockClientMockRecorder) GetPullRequestPatch(ctx, c interface{}) *gomock.Call
GetPullRequestPatch indicates an expected call of GetPullRequestPatch
func (*MockClientMockRecorder) SetCommitStatus ¶
func (mr *MockClientMockRecorder) SetCommitStatus(ctx, c, ref, status, desc, url interface{}) *gomock.Call
SetCommitStatus indicates an expected call of SetCommitStatus
type MyClient ¶
type MyClient struct{}
func NewMyClient ¶
func NewMyClient() *MyClient