Documentation
¶
Index ¶
- type MockIssueService
- func (_m *MockIssueService) CreateComment(ctx context.Context, owner string, repo string, number int, ...) (*github.IssueComment, *github.Response, error)
- func (_m *MockIssueService) EXPECT() *MockIssueService_Expecter
- func (_m *MockIssueService) ListComments(ctx context.Context, owner string, repo string, number int, ...) ([]*github.IssueComment, *github.Response, error)
- func (_m *MockIssueService) UpdateComment(ctx context.Context, owner string, repo string, commentID int64, ...) (*github.IssueComment, *github.Response, error)
- type MockIssueService_CreateComment_Call
- func (_c *MockIssueService_CreateComment_Call) Return(_a0 *github.IssueComment, _a1 *github.Response, _a2 error) *MockIssueService_CreateComment_Call
- func (_c *MockIssueService_CreateComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockIssueService_CreateComment_Call
- func (_c *MockIssueService_CreateComment_Call) RunAndReturn(...) *MockIssueService_CreateComment_Call
- type MockIssueService_Expecter
- func (_e *MockIssueService_Expecter) CreateComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *MockIssueService_CreateComment_Call
- func (_e *MockIssueService_Expecter) ListComments(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *MockIssueService_ListComments_Call
- func (_e *MockIssueService_Expecter) UpdateComment(ctx interface{}, owner interface{}, repo interface{}, commentID interface{}, ...) *MockIssueService_UpdateComment_Call
- type MockIssueService_ListComments_Call
- func (_c *MockIssueService_ListComments_Call) Return(_a0 []*github.IssueComment, _a1 *github.Response, _a2 error) *MockIssueService_ListComments_Call
- func (_c *MockIssueService_ListComments_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockIssueService_ListComments_Call
- func (_c *MockIssueService_ListComments_Call) RunAndReturn(...) *MockIssueService_ListComments_Call
- type MockIssueService_UpdateComment_Call
- func (_c *MockIssueService_UpdateComment_Call) Return(_a0 *github.IssueComment, _a1 *github.Response, _a2 error) *MockIssueService_UpdateComment_Call
- func (_c *MockIssueService_UpdateComment_Call) Run(run func(ctx context.Context, owner string, repo string, commentID int64, ...)) *MockIssueService_UpdateComment_Call
- func (_c *MockIssueService_UpdateComment_Call) RunAndReturn(...) *MockIssueService_UpdateComment_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIssueService ¶
MockIssueService is an autogenerated mock type for the IssueService type
func NewMockIssueService ¶
func NewMockIssueService(t interface {
mock.TestingT
Cleanup(func())
}) *MockIssueService
NewMockIssueService creates a new instance of MockIssueService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockIssueService) CreateComment ¶
func (_m *MockIssueService) CreateComment(ctx context.Context, owner string, repo string, number int, comment github.IssueCommentRequest) (*github.IssueComment, *github.Response, error)
CreateComment provides a mock function with given fields: ctx, owner, repo, number, comment
func (*MockIssueService) EXPECT ¶
func (_m *MockIssueService) EXPECT() *MockIssueService_Expecter
func (*MockIssueService) ListComments ¶
func (_m *MockIssueService) ListComments(ctx context.Context, owner string, repo string, number int, opts *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)
ListComments provides a mock function with given fields: ctx, owner, repo, number, opts
func (*MockIssueService) UpdateComment ¶ added in v1.0.37
func (_m *MockIssueService) UpdateComment(ctx context.Context, owner string, repo string, commentID int64, comment github.IssueCommentRequest) (*github.IssueComment, *github.Response, error)
UpdateComment provides a mock function with given fields: ctx, owner, repo, commentID, comment
type MockIssueService_CreateComment_Call ¶
MockIssueService_CreateComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateComment'
func (*MockIssueService_CreateComment_Call) Return ¶
func (_c *MockIssueService_CreateComment_Call) Return(_a0 *github.IssueComment, _a1 *github.Response, _a2 error) *MockIssueService_CreateComment_Call
func (*MockIssueService_CreateComment_Call) Run ¶
func (_c *MockIssueService_CreateComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, comment github.IssueCommentRequest)) *MockIssueService_CreateComment_Call
func (*MockIssueService_CreateComment_Call) RunAndReturn ¶
func (_c *MockIssueService_CreateComment_Call) RunAndReturn(run func(context.Context, string, string, int, github.IssueCommentRequest) (*github.IssueComment, *github.Response, error)) *MockIssueService_CreateComment_Call
type MockIssueService_Expecter ¶
type MockIssueService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIssueService_Expecter) CreateComment ¶
func (_e *MockIssueService_Expecter) CreateComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, comment interface{}) *MockIssueService_CreateComment_Call
CreateComment is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- comment github.IssueCommentRequest
func (*MockIssueService_Expecter) ListComments ¶
func (_e *MockIssueService_Expecter) ListComments(ctx interface{}, owner interface{}, repo interface{}, number interface{}, opts interface{}) *MockIssueService_ListComments_Call
ListComments is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- opts *github.IssueListCommentsOptions
func (*MockIssueService_Expecter) UpdateComment ¶ added in v1.0.37
func (_e *MockIssueService_Expecter) UpdateComment(ctx interface{}, owner interface{}, repo interface{}, commentID interface{}, comment interface{}) *MockIssueService_UpdateComment_Call
UpdateComment is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- commentID int64
- comment github.IssueCommentRequest
type MockIssueService_ListComments_Call ¶
MockIssueService_ListComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListComments'
func (*MockIssueService_ListComments_Call) Return ¶
func (_c *MockIssueService_ListComments_Call) Return(_a0 []*github.IssueComment, _a1 *github.Response, _a2 error) *MockIssueService_ListComments_Call
func (*MockIssueService_ListComments_Call) Run ¶
func (_c *MockIssueService_ListComments_Call) Run(run func(ctx context.Context, owner string, repo string, number int, opts *github.IssueListCommentsOptions)) *MockIssueService_ListComments_Call
func (*MockIssueService_ListComments_Call) RunAndReturn ¶
func (_c *MockIssueService_ListComments_Call) RunAndReturn(run func(context.Context, string, string, int, *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)) *MockIssueService_ListComments_Call
type MockIssueService_UpdateComment_Call ¶ added in v1.0.37
MockIssueService_UpdateComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateComment'
func (*MockIssueService_UpdateComment_Call) Return ¶ added in v1.0.37
func (_c *MockIssueService_UpdateComment_Call) Return(_a0 *github.IssueComment, _a1 *github.Response, _a2 error) *MockIssueService_UpdateComment_Call
func (*MockIssueService_UpdateComment_Call) Run ¶ added in v1.0.37
func (_c *MockIssueService_UpdateComment_Call) Run(run func(ctx context.Context, owner string, repo string, commentID int64, comment github.IssueCommentRequest)) *MockIssueService_UpdateComment_Call
func (*MockIssueService_UpdateComment_Call) RunAndReturn ¶ added in v1.0.37
func (_c *MockIssueService_UpdateComment_Call) RunAndReturn(run func(context.Context, string, string, int64, github.IssueCommentRequest) (*github.IssueComment, *github.Response, error)) *MockIssueService_UpdateComment_Call