Documentation
¶
Index ¶
- type MockIssueCommenter
- type MockIssueCommenter_CreateIssueComment_Call
- func (_c *MockIssueCommenter_CreateIssueComment_Call) Return(comment forge.Comment, err error) *MockIssueCommenter_CreateIssueComment_Call
- func (_c *MockIssueCommenter_CreateIssueComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockIssueCommenter_CreateIssueComment_Call
- func (_c *MockIssueCommenter_CreateIssueComment_Call) RunAndReturn(...) *MockIssueCommenter_CreateIssueComment_Call
- type MockIssueCommenter_Expecter
- type MockMergeRequestCommenter
- type MockMergeRequestCommenter_Comment_Call
- func (_c *MockMergeRequestCommenter_Comment_Call) Return(comment forge.Comment, err error) *MockMergeRequestCommenter_Comment_Call
- func (_c *MockMergeRequestCommenter_Comment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockMergeRequestCommenter_Comment_Call
- func (_c *MockMergeRequestCommenter_Comment_Call) RunAndReturn(...) *MockMergeRequestCommenter_Comment_Call
- type MockMergeRequestCommenter_Expecter
- type MockWikis
- func (_m *MockWikis) EXPECT() *MockWikis_Expecter
- func (_mock *MockWikis) GetWikiPage(ctx context.Context, owner string, repo string, path string, maxBytes int64) (forge.WikiPage, error)
- func (_mock *MockWikis) UpdateWikiPage(ctx context.Context, owner string, repo string, page forge.WikiPage, ...) error
- type MockWikis_Expecter
- type MockWikis_GetWikiPage_Call
- type MockWikis_UpdateWikiPage_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIssueCommenter ¶
MockIssueCommenter is an autogenerated mock type for the IssueCommenter type
func NewMockIssueCommenter ¶
func NewMockIssueCommenter(t interface {
mock.TestingT
Cleanup(func())
}) *MockIssueCommenter
NewMockIssueCommenter creates a new instance of MockIssueCommenter. 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 (*MockIssueCommenter) CreateIssueComment ¶
func (_mock *MockIssueCommenter) CreateIssueComment(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)
CreateIssueComment provides a mock function for the type MockIssueCommenter
func (*MockIssueCommenter) EXPECT ¶
func (_m *MockIssueCommenter) EXPECT() *MockIssueCommenter_Expecter
type MockIssueCommenter_CreateIssueComment_Call ¶
MockIssueCommenter_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'
func (*MockIssueCommenter_CreateIssueComment_Call) Return ¶
func (_c *MockIssueCommenter_CreateIssueComment_Call) Return(comment forge.Comment, err error) *MockIssueCommenter_CreateIssueComment_Call
func (*MockIssueCommenter_CreateIssueComment_Call) Run ¶
func (_c *MockIssueCommenter_CreateIssueComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft)) *MockIssueCommenter_CreateIssueComment_Call
func (*MockIssueCommenter_CreateIssueComment_Call) RunAndReturn ¶
func (_c *MockIssueCommenter_CreateIssueComment_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)) *MockIssueCommenter_CreateIssueComment_Call
type MockIssueCommenter_Expecter ¶
type MockIssueCommenter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIssueCommenter_Expecter) CreateIssueComment ¶
func (_e *MockIssueCommenter_Expecter) CreateIssueComment(ctx any, owner any, repo any, number any, draft any) *MockIssueCommenter_CreateIssueComment_Call
CreateIssueComment is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- draft forge.CommentDraft
type MockMergeRequestCommenter ¶
MockMergeRequestCommenter is an autogenerated mock type for the MergeRequestCommenter type
func NewMockMergeRequestCommenter ¶
func NewMockMergeRequestCommenter(t interface {
mock.TestingT
Cleanup(func())
}) *MockMergeRequestCommenter
NewMockMergeRequestCommenter creates a new instance of MockMergeRequestCommenter. 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 (*MockMergeRequestCommenter) Comment ¶
func (_mock *MockMergeRequestCommenter) Comment(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)
Comment provides a mock function for the type MockMergeRequestCommenter
func (*MockMergeRequestCommenter) EXPECT ¶
func (_m *MockMergeRequestCommenter) EXPECT() *MockMergeRequestCommenter_Expecter
type MockMergeRequestCommenter_Comment_Call ¶
MockMergeRequestCommenter_Comment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Comment'
func (*MockMergeRequestCommenter_Comment_Call) Return ¶
func (_c *MockMergeRequestCommenter_Comment_Call) Return(comment forge.Comment, err error) *MockMergeRequestCommenter_Comment_Call
func (*MockMergeRequestCommenter_Comment_Call) Run ¶
func (_c *MockMergeRequestCommenter_Comment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft)) *MockMergeRequestCommenter_Comment_Call
func (*MockMergeRequestCommenter_Comment_Call) RunAndReturn ¶
func (_c *MockMergeRequestCommenter_Comment_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)) *MockMergeRequestCommenter_Comment_Call
type MockMergeRequestCommenter_Expecter ¶
type MockMergeRequestCommenter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMergeRequestCommenter_Expecter) Comment ¶
func (_e *MockMergeRequestCommenter_Expecter) Comment(ctx any, owner any, repo any, number any, draft any) *MockMergeRequestCommenter_Comment_Call
Comment is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- draft forge.CommentDraft
type MockWikis ¶
MockWikis is an autogenerated mock type for the Wikis type
func NewMockWikis ¶
NewMockWikis creates a new instance of MockWikis. 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 (*MockWikis) EXPECT ¶
func (_m *MockWikis) EXPECT() *MockWikis_Expecter
type MockWikis_Expecter ¶
type MockWikis_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWikis_Expecter) GetWikiPage ¶
func (_e *MockWikis_Expecter) GetWikiPage(ctx any, owner any, repo any, path any, maxBytes any) *MockWikis_GetWikiPage_Call
GetWikiPage is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- path string
- maxBytes int64
func (*MockWikis_Expecter) UpdateWikiPage ¶
func (_e *MockWikis_Expecter) UpdateWikiPage(ctx any, owner any, repo any, page any, message any) *MockWikis_UpdateWikiPage_Call
UpdateWikiPage is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- page forge.WikiPage
- message string
type MockWikis_GetWikiPage_Call ¶
MockWikis_GetWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWikiPage'
func (*MockWikis_GetWikiPage_Call) Return ¶
func (_c *MockWikis_GetWikiPage_Call) Return(wikiPage forge.WikiPage, err error) *MockWikis_GetWikiPage_Call
func (*MockWikis_GetWikiPage_Call) Run ¶
func (_c *MockWikis_GetWikiPage_Call) Run(run func(ctx context.Context, owner string, repo string, path string, maxBytes int64)) *MockWikis_GetWikiPage_Call
func (*MockWikis_GetWikiPage_Call) RunAndReturn ¶
type MockWikis_UpdateWikiPage_Call ¶
MockWikis_UpdateWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWikiPage'
func (*MockWikis_UpdateWikiPage_Call) Return ¶
func (_c *MockWikis_UpdateWikiPage_Call) Return(err error) *MockWikis_UpdateWikiPage_Call
func (*MockWikis_UpdateWikiPage_Call) Run ¶
func (_c *MockWikis_UpdateWikiPage_Call) Run(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string)) *MockWikis_UpdateWikiPage_Call
func (*MockWikis_UpdateWikiPage_Call) RunAndReturn ¶
func (_c *MockWikis_UpdateWikiPage_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error) *MockWikis_UpdateWikiPage_Call