Documentation
¶
Index ¶
- type MockChecksumProvider
- type MockChecksumProvider_DownloadChecksumManifest_Call
- func (_c *MockChecksumProvider_DownloadChecksumManifest_Call) Return(bytes []byte, err error) *MockChecksumProvider_DownloadChecksumManifest_Call
- func (_c *MockChecksumProvider_DownloadChecksumManifest_Call) Run(run func(ctx context.Context, rel forge.Release, maxBytes int64)) *MockChecksumProvider_DownloadChecksumManifest_Call
- func (_c *MockChecksumProvider_DownloadChecksumManifest_Call) RunAndReturn(...) *MockChecksumProvider_DownloadChecksumManifest_Call
- type MockChecksumProvider_Expecter
- type MockConfig
- type MockConfig_Expecter
- type MockConfig_GetString_Call
- type MockConfig_Sub_Call
- type MockContents
- type MockContents_Expecter
- type MockContents_GetFile_Call
- type MockDraftPublisher
- type MockDraftPublisher_Expecter
- type MockDraftPublisher_PublishRelease_Call
- func (_c *MockDraftPublisher_PublishRelease_Call) Return(release forge.Release, err error) *MockDraftPublisher_PublishRelease_Call
- func (_c *MockDraftPublisher_PublishRelease_Call) Run(run func(ctx context.Context, owner string, repo string, tagName string)) *MockDraftPublisher_PublishRelease_Call
- func (_c *MockDraftPublisher_PublishRelease_Call) RunAndReturn(...) *MockDraftPublisher_PublishRelease_Call
- 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 MockIssueFiler
- type MockIssueFiler_CreateIssue_Call
- type MockIssueFiler_Expecter
- type MockIssues
- func (_m *MockIssues) EXPECT() *MockIssues_Expecter
- func (_mock *MockIssues) GetIssue(ctx context.Context, owner string, repo string, number int) (forge.Issue, error)
- func (_mock *MockIssues) ListComments(ctx context.Context, owner string, repo string, number int, ...) error
- func (_mock *MockIssues) SearchIssues(ctx context.Context, owner string, repo string, q forge.IssueQuery, ...) error
- type MockIssues_Expecter
- func (_e *MockIssues_Expecter) GetIssue(ctx any, owner any, repo any, number any) *MockIssues_GetIssue_Call
- func (_e *MockIssues_Expecter) ListComments(ctx any, owner any, repo any, number any, q any, yield any) *MockIssues_ListComments_Call
- func (_e *MockIssues_Expecter) SearchIssues(ctx any, owner any, repo any, q any, yield any) *MockIssues_SearchIssues_Call
- type MockIssues_GetIssue_Call
- func (_c *MockIssues_GetIssue_Call) Return(issue forge.Issue, err error) *MockIssues_GetIssue_Call
- func (_c *MockIssues_GetIssue_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockIssues_GetIssue_Call
- func (_c *MockIssues_GetIssue_Call) RunAndReturn(...) *MockIssues_GetIssue_Call
- type MockIssues_ListComments_Call
- func (_c *MockIssues_ListComments_Call) Return(err error) *MockIssues_ListComments_Call
- func (_c *MockIssues_ListComments_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockIssues_ListComments_Call
- func (_c *MockIssues_ListComments_Call) RunAndReturn(...) *MockIssues_ListComments_Call
- type MockIssues_SearchIssues_Call
- type MockProvider
- func (_mock *MockProvider) DownloadReleaseAsset(ctx context.Context, owner string, repo string, asset forge.ReleaseAsset) (io.ReadCloser, string, error)
- func (_m *MockProvider) EXPECT() *MockProvider_Expecter
- func (_mock *MockProvider) GetLatestRelease(ctx context.Context, owner string, repo string) (forge.Release, error)
- func (_mock *MockProvider) GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (forge.Release, error)
- func (_mock *MockProvider) ListReleases(ctx context.Context, owner string, repo string, limit int) ([]forge.Release, error)
- type MockProvider_DownloadReleaseAsset_Call
- func (_c *MockProvider_DownloadReleaseAsset_Call) Return(readCloser io.ReadCloser, s string, err error) *MockProvider_DownloadReleaseAsset_Call
- func (_c *MockProvider_DownloadReleaseAsset_Call) Run(...) *MockProvider_DownloadReleaseAsset_Call
- func (_c *MockProvider_DownloadReleaseAsset_Call) RunAndReturn(...) *MockProvider_DownloadReleaseAsset_Call
- type MockProvider_Expecter
- func (_e *MockProvider_Expecter) DownloadReleaseAsset(ctx any, owner any, repo any, asset any) *MockProvider_DownloadReleaseAsset_Call
- func (_e *MockProvider_Expecter) GetLatestRelease(ctx any, owner any, repo any) *MockProvider_GetLatestRelease_Call
- func (_e *MockProvider_Expecter) GetReleaseByTag(ctx any, owner any, repo any, tag any) *MockProvider_GetReleaseByTag_Call
- func (_e *MockProvider_Expecter) ListReleases(ctx any, owner any, repo any, limit any) *MockProvider_ListReleases_Call
- type MockProvider_GetLatestRelease_Call
- func (_c *MockProvider_GetLatestRelease_Call) Return(release forge.Release, err error) *MockProvider_GetLatestRelease_Call
- func (_c *MockProvider_GetLatestRelease_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockProvider_GetLatestRelease_Call
- func (_c *MockProvider_GetLatestRelease_Call) RunAndReturn(...) *MockProvider_GetLatestRelease_Call
- type MockProvider_GetReleaseByTag_Call
- func (_c *MockProvider_GetReleaseByTag_Call) Return(release forge.Release, err error) *MockProvider_GetReleaseByTag_Call
- func (_c *MockProvider_GetReleaseByTag_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *MockProvider_GetReleaseByTag_Call
- func (_c *MockProvider_GetReleaseByTag_Call) RunAndReturn(...) *MockProvider_GetReleaseByTag_Call
- type MockProvider_ListReleases_Call
- func (_c *MockProvider_ListReleases_Call) Return(releases []forge.Release, err error) *MockProvider_ListReleases_Call
- func (_c *MockProvider_ListReleases_Call) Run(run func(ctx context.Context, owner string, repo string, limit int)) *MockProvider_ListReleases_Call
- func (_c *MockProvider_ListReleases_Call) RunAndReturn(...) *MockProvider_ListReleases_Call
- type MockPullRequestCommenter
- func (_mock *MockPullRequestCommenter) Comment(ctx context.Context, owner string, repo string, number int, ...) (forge.Comment, error)
- func (_m *MockPullRequestCommenter) EXPECT() *MockPullRequestCommenter_Expecter
- func (_mock *MockPullRequestCommenter) ListRequestComments(ctx context.Context, owner string, repo string, number int) ([]forge.Comment, error)
- type MockPullRequestCommenter_Comment_Call
- func (_c *MockPullRequestCommenter_Comment_Call) Return(comment forge.Comment, err error) *MockPullRequestCommenter_Comment_Call
- func (_c *MockPullRequestCommenter_Comment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockPullRequestCommenter_Comment_Call
- func (_c *MockPullRequestCommenter_Comment_Call) RunAndReturn(...) *MockPullRequestCommenter_Comment_Call
- type MockPullRequestCommenter_Expecter
- func (_e *MockPullRequestCommenter_Expecter) Comment(ctx any, owner any, repo any, number any, draft any) *MockPullRequestCommenter_Comment_Call
- func (_e *MockPullRequestCommenter_Expecter) ListRequestComments(ctx any, owner any, repo any, number any) *MockPullRequestCommenter_ListRequestComments_Call
- type MockPullRequestCommenter_ListRequestComments_Call
- func (_c *MockPullRequestCommenter_ListRequestComments_Call) Return(comments []forge.Comment, err error) *MockPullRequestCommenter_ListRequestComments_Call
- func (_c *MockPullRequestCommenter_ListRequestComments_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestCommenter_ListRequestComments_Call
- func (_c *MockPullRequestCommenter_ListRequestComments_Call) RunAndReturn(...) *MockPullRequestCommenter_ListRequestComments_Call
- type MockRelease
- type MockReleaseAsset
- type MockReleaseAsset_Expecter
- type MockReleaseAsset_GetBrowserDownloadURL_Call
- func (_c *MockReleaseAsset_GetBrowserDownloadURL_Call) Return(s string) *MockReleaseAsset_GetBrowserDownloadURL_Call
- func (_c *MockReleaseAsset_GetBrowserDownloadURL_Call) Run(run func()) *MockReleaseAsset_GetBrowserDownloadURL_Call
- func (_c *MockReleaseAsset_GetBrowserDownloadURL_Call) RunAndReturn(run func() string) *MockReleaseAsset_GetBrowserDownloadURL_Call
- type MockReleaseAsset_GetID_Call
- type MockReleaseAsset_GetName_Call
- type MockRelease_Expecter
- func (_e *MockRelease_Expecter) GetAssets() *MockRelease_GetAssets_Call
- func (_e *MockRelease_Expecter) GetBody() *MockRelease_GetBody_Call
- func (_e *MockRelease_Expecter) GetDraft() *MockRelease_GetDraft_Call
- func (_e *MockRelease_Expecter) GetName() *MockRelease_GetName_Call
- func (_e *MockRelease_Expecter) GetTagName() *MockRelease_GetTagName_Call
- type MockRelease_GetAssets_Call
- func (_c *MockRelease_GetAssets_Call) Return(releaseAssets []forge.ReleaseAsset) *MockRelease_GetAssets_Call
- func (_c *MockRelease_GetAssets_Call) Run(run func()) *MockRelease_GetAssets_Call
- func (_c *MockRelease_GetAssets_Call) RunAndReturn(run func() []forge.ReleaseAsset) *MockRelease_GetAssets_Call
- type MockRelease_GetBody_Call
- type MockRelease_GetDraft_Call
- type MockRelease_GetName_Call
- type MockRelease_GetTagName_Call
- type MockRepositories
- type MockRepositories_Expecter
- type MockRepositories_ListRepositories_Call
- func (_c *MockRepositories_ListRepositories_Call) Return(err error) *MockRepositories_ListRepositories_Call
- func (_c *MockRepositories_ListRepositories_Call) Run(...) *MockRepositories_ListRepositories_Call
- func (_c *MockRepositories_ListRepositories_Call) RunAndReturn(...) *MockRepositories_ListRepositories_Call
- type MockRepositoryCreator
- type MockRepositoryCreator_CreateRepository_Call
- func (_c *MockRepositoryCreator_CreateRepository_Call) Return(repository forge.Repository, err error) *MockRepositoryCreator_CreateRepository_Call
- func (_c *MockRepositoryCreator_CreateRepository_Call) Run(run func(ctx context.Context, owner string, draft forge.RepositoryDraft)) *MockRepositoryCreator_CreateRepository_Call
- func (_c *MockRepositoryCreator_CreateRepository_Call) RunAndReturn(...) *MockRepositoryCreator_CreateRepository_Call
- type MockRepositoryCreator_Expecter
- type MockSignatureProvider
- type MockSignatureProvider_DownloadSignature_Call
- func (_c *MockSignatureProvider_DownloadSignature_Call) Return(bytes []byte, err error) *MockSignatureProvider_DownloadSignature_Call
- func (_c *MockSignatureProvider_DownloadSignature_Call) Run(run func(ctx context.Context, rel forge.Release, maxBytes int64)) *MockSignatureProvider_DownloadSignature_Call
- func (_c *MockSignatureProvider_DownloadSignature_Call) RunAndReturn(...) *MockSignatureProvider_DownloadSignature_Call
- type MockSignatureProvider_Expecter
- type MockSites
- type MockSites_Expecter
- type MockSites_GetSite_Call
- func (_c *MockSites_GetSite_Call) Return(site forge.Site, err error) *MockSites_GetSite_Call
- func (_c *MockSites_GetSite_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockSites_GetSite_Call
- func (_c *MockSites_GetSite_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) (forge.Site, error)) *MockSites_GetSite_Call
- type MockSnippets
- func (_mock *MockSnippets) CreateSnippet(ctx context.Context, scope forge.SnippetScope, opts forge.SnippetCreateOptions) (forge.Snippet, error)
- func (_mock *MockSnippets) DeleteSnippet(ctx context.Context, scope forge.SnippetScope, id string) error
- func (_m *MockSnippets) EXPECT() *MockSnippets_Expecter
- func (_mock *MockSnippets) GetSnippet(ctx context.Context, scope forge.SnippetScope, id string) (forge.Snippet, error)
- func (_mock *MockSnippets) ListSnippets(ctx context.Context, scope forge.SnippetScope) ([]forge.Snippet, error)
- type MockSnippets_CreateSnippet_Call
- type MockSnippets_DeleteSnippet_Call
- func (_c *MockSnippets_DeleteSnippet_Call) Return(err error) *MockSnippets_DeleteSnippet_Call
- func (_c *MockSnippets_DeleteSnippet_Call) Run(run func(ctx context.Context, scope forge.SnippetScope, id string)) *MockSnippets_DeleteSnippet_Call
- func (_c *MockSnippets_DeleteSnippet_Call) RunAndReturn(run func(ctx context.Context, scope forge.SnippetScope, id string) error) *MockSnippets_DeleteSnippet_Call
- type MockSnippets_Expecter
- func (_e *MockSnippets_Expecter) CreateSnippet(ctx any, scope any, opts any) *MockSnippets_CreateSnippet_Call
- func (_e *MockSnippets_Expecter) DeleteSnippet(ctx any, scope any, id any) *MockSnippets_DeleteSnippet_Call
- func (_e *MockSnippets_Expecter) GetSnippet(ctx any, scope any, id any) *MockSnippets_GetSnippet_Call
- func (_e *MockSnippets_Expecter) ListSnippets(ctx any, scope any) *MockSnippets_ListSnippets_Call
- type MockSnippets_GetSnippet_Call
- func (_c *MockSnippets_GetSnippet_Call) Return(snippet forge.Snippet, err error) *MockSnippets_GetSnippet_Call
- func (_c *MockSnippets_GetSnippet_Call) Run(run func(ctx context.Context, scope forge.SnippetScope, id string)) *MockSnippets_GetSnippet_Call
- func (_c *MockSnippets_GetSnippet_Call) RunAndReturn(...) *MockSnippets_GetSnippet_Call
- type MockSnippets_ListSnippets_Call
- func (_c *MockSnippets_ListSnippets_Call) Return(snippets []forge.Snippet, err error) *MockSnippets_ListSnippets_Call
- func (_c *MockSnippets_ListSnippets_Call) Run(run func(ctx context.Context, scope forge.SnippetScope)) *MockSnippets_ListSnippets_Call
- func (_c *MockSnippets_ListSnippets_Call) RunAndReturn(...) *MockSnippets_ListSnippets_Call
- type MockWikis
- func (_mock *MockWikis) CreateWikiPage(ctx context.Context, owner string, repo string, page forge.WikiPage, ...) error
- 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) ListWikiPages(ctx context.Context, owner string, repo string) ([]forge.WikiPage, error)
- func (_mock *MockWikis) UpdateWikiPage(ctx context.Context, owner string, repo string, page forge.WikiPage, ...) error
- type MockWikis_CreateWikiPage_Call
- type MockWikis_Expecter
- func (_e *MockWikis_Expecter) CreateWikiPage(ctx any, owner any, repo any, page any, message any) *MockWikis_CreateWikiPage_Call
- func (_e *MockWikis_Expecter) GetWikiPage(ctx any, owner any, repo any, path any, maxBytes any) *MockWikis_GetWikiPage_Call
- func (_e *MockWikis_Expecter) ListWikiPages(ctx any, owner any, repo any) *MockWikis_ListWikiPages_Call
- func (_e *MockWikis_Expecter) UpdateWikiPage(ctx any, owner any, repo any, page any, message any) *MockWikis_UpdateWikiPage_Call
- type MockWikis_GetWikiPage_Call
- type MockWikis_ListWikiPages_Call
- func (_c *MockWikis_ListWikiPages_Call) Return(wikiPages []forge.WikiPage, err error) *MockWikis_ListWikiPages_Call
- func (_c *MockWikis_ListWikiPages_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockWikis_ListWikiPages_Call
- func (_c *MockWikis_ListWikiPages_Call) RunAndReturn(...) *MockWikis_ListWikiPages_Call
- type MockWikis_UpdateWikiPage_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChecksumProvider ¶
MockChecksumProvider is an autogenerated mock type for the ChecksumProvider type
func NewMockChecksumProvider ¶
func NewMockChecksumProvider(t interface {
mock.TestingT
Cleanup(func())
}) *MockChecksumProvider
NewMockChecksumProvider creates a new instance of MockChecksumProvider. 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 (*MockChecksumProvider) DownloadChecksumManifest ¶
func (_mock *MockChecksumProvider) DownloadChecksumManifest(ctx context.Context, rel forge.Release, maxBytes int64) ([]byte, error)
DownloadChecksumManifest provides a mock function for the type MockChecksumProvider
func (*MockChecksumProvider) EXPECT ¶
func (_m *MockChecksumProvider) EXPECT() *MockChecksumProvider_Expecter
type MockChecksumProvider_DownloadChecksumManifest_Call ¶
MockChecksumProvider_DownloadChecksumManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadChecksumManifest'
func (*MockChecksumProvider_DownloadChecksumManifest_Call) Return ¶
func (_c *MockChecksumProvider_DownloadChecksumManifest_Call) Return(bytes []byte, err error) *MockChecksumProvider_DownloadChecksumManifest_Call
func (*MockChecksumProvider_DownloadChecksumManifest_Call) Run ¶
func (_c *MockChecksumProvider_DownloadChecksumManifest_Call) Run(run func(ctx context.Context, rel forge.Release, maxBytes int64)) *MockChecksumProvider_DownloadChecksumManifest_Call
func (*MockChecksumProvider_DownloadChecksumManifest_Call) RunAndReturn ¶
func (_c *MockChecksumProvider_DownloadChecksumManifest_Call) RunAndReturn(run func(ctx context.Context, rel forge.Release, maxBytes int64) ([]byte, error)) *MockChecksumProvider_DownloadChecksumManifest_Call
type MockChecksumProvider_Expecter ¶
type MockChecksumProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockChecksumProvider_Expecter) DownloadChecksumManifest ¶
func (_e *MockChecksumProvider_Expecter) DownloadChecksumManifest(ctx any, rel any, maxBytes any) *MockChecksumProvider_DownloadChecksumManifest_Call
DownloadChecksumManifest is a helper method to define mock.On call
- ctx context.Context
- rel forge.Release
- maxBytes int64
type MockConfig ¶
MockConfig is an autogenerated mock type for the Config type
func NewMockConfig ¶
func NewMockConfig(t interface {
mock.TestingT
Cleanup(func())
}) *MockConfig
NewMockConfig creates a new instance of MockConfig. 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 (*MockConfig) EXPECT ¶
func (_m *MockConfig) EXPECT() *MockConfig_Expecter
func (*MockConfig) GetString ¶
func (_mock *MockConfig) GetString(key string) string
GetString provides a mock function for the type MockConfig
type MockConfig_Expecter ¶
type MockConfig_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConfig_Expecter) GetString ¶
func (_e *MockConfig_Expecter) GetString(key any) *MockConfig_GetString_Call
GetString is a helper method to define mock.On call
- key string
func (*MockConfig_Expecter) Sub ¶
func (_e *MockConfig_Expecter) Sub(key any) *MockConfig_Sub_Call
Sub is a helper method to define mock.On call
- key string
type MockConfig_GetString_Call ¶
MockConfig_GetString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetString'
func (*MockConfig_GetString_Call) Return ¶
func (_c *MockConfig_GetString_Call) Return(s string) *MockConfig_GetString_Call
func (*MockConfig_GetString_Call) Run ¶
func (_c *MockConfig_GetString_Call) Run(run func(key string)) *MockConfig_GetString_Call
func (*MockConfig_GetString_Call) RunAndReturn ¶
func (_c *MockConfig_GetString_Call) RunAndReturn(run func(key string) string) *MockConfig_GetString_Call
type MockConfig_Sub_Call ¶
MockConfig_Sub_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sub'
func (*MockConfig_Sub_Call) Return ¶
func (_c *MockConfig_Sub_Call) Return(config forge.Config) *MockConfig_Sub_Call
func (*MockConfig_Sub_Call) Run ¶
func (_c *MockConfig_Sub_Call) Run(run func(key string)) *MockConfig_Sub_Call
func (*MockConfig_Sub_Call) RunAndReturn ¶
func (_c *MockConfig_Sub_Call) RunAndReturn(run func(key string) forge.Config) *MockConfig_Sub_Call
type MockContents ¶ added in v0.4.0
MockContents is an autogenerated mock type for the Contents type
func NewMockContents ¶ added in v0.4.0
func NewMockContents(t interface {
mock.TestingT
Cleanup(func())
}) *MockContents
NewMockContents creates a new instance of MockContents. 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 (*MockContents) EXPECT ¶ added in v0.4.0
func (_m *MockContents) EXPECT() *MockContents_Expecter
type MockContents_Expecter ¶ added in v0.4.0
type MockContents_Expecter struct {
// contains filtered or unexported fields
}
func (*MockContents_Expecter) GetFile ¶ added in v0.4.0
func (_e *MockContents_Expecter) GetFile(ctx any, owner any, repo any, path any, ref any, maxBytes any) *MockContents_GetFile_Call
GetFile is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- path string
- ref string
- maxBytes int64
type MockContents_GetFile_Call ¶ added in v0.4.0
MockContents_GetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFile'
func (*MockContents_GetFile_Call) Return ¶ added in v0.4.0
func (_c *MockContents_GetFile_Call) Return(bytes []byte, err error) *MockContents_GetFile_Call
func (*MockContents_GetFile_Call) Run ¶ added in v0.4.0
func (_c *MockContents_GetFile_Call) Run(run func(ctx context.Context, owner string, repo string, path string, ref string, maxBytes int64)) *MockContents_GetFile_Call
func (*MockContents_GetFile_Call) RunAndReturn ¶ added in v0.4.0
type MockDraftPublisher ¶ added in v0.27.0
MockDraftPublisher is an autogenerated mock type for the DraftPublisher type
func NewMockDraftPublisher ¶ added in v0.27.0
func NewMockDraftPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *MockDraftPublisher
NewMockDraftPublisher creates a new instance of MockDraftPublisher. 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 (*MockDraftPublisher) EXPECT ¶ added in v0.27.0
func (_m *MockDraftPublisher) EXPECT() *MockDraftPublisher_Expecter
type MockDraftPublisher_Expecter ¶ added in v0.27.0
type MockDraftPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDraftPublisher_Expecter) PublishRelease ¶ added in v0.27.0
func (_e *MockDraftPublisher_Expecter) PublishRelease(ctx any, owner any, repo any, tagName any) *MockDraftPublisher_PublishRelease_Call
PublishRelease is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tagName string
type MockDraftPublisher_PublishRelease_Call ¶ added in v0.27.0
MockDraftPublisher_PublishRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishRelease'
func (*MockDraftPublisher_PublishRelease_Call) Return ¶ added in v0.27.0
func (_c *MockDraftPublisher_PublishRelease_Call) Return(release forge.Release, err error) *MockDraftPublisher_PublishRelease_Call
func (*MockDraftPublisher_PublishRelease_Call) Run ¶ added in v0.27.0
func (_c *MockDraftPublisher_PublishRelease_Call) Run(run func(ctx context.Context, owner string, repo string, tagName string)) *MockDraftPublisher_PublishRelease_Call
func (*MockDraftPublisher_PublishRelease_Call) RunAndReturn ¶ added in v0.27.0
func (_c *MockDraftPublisher_PublishRelease_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tagName string) (forge.Release, error)) *MockDraftPublisher_PublishRelease_Call
type MockIssueCommenter ¶ added in v0.26.0
MockIssueCommenter is an autogenerated mock type for the IssueCommenter type
func NewMockIssueCommenter ¶ added in v0.26.0
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 ¶ added in v0.26.0
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 ¶ added in v0.26.0
func (_m *MockIssueCommenter) EXPECT() *MockIssueCommenter_Expecter
type MockIssueCommenter_CreateIssueComment_Call ¶ added in v0.26.0
MockIssueCommenter_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'
func (*MockIssueCommenter_CreateIssueComment_Call) Return ¶ added in v0.26.0
func (_c *MockIssueCommenter_CreateIssueComment_Call) Return(comment forge.Comment, err error) *MockIssueCommenter_CreateIssueComment_Call
func (*MockIssueCommenter_CreateIssueComment_Call) Run ¶ added in v0.26.0
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 ¶ added in v0.26.0
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 ¶ added in v0.26.0
type MockIssueCommenter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIssueCommenter_Expecter) CreateIssueComment ¶ added in v0.26.0
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 MockIssueFiler ¶ added in v0.5.0
MockIssueFiler is an autogenerated mock type for the IssueFiler type
func NewMockIssueFiler ¶ added in v0.5.0
func NewMockIssueFiler(t interface {
mock.TestingT
Cleanup(func())
}) *MockIssueFiler
NewMockIssueFiler creates a new instance of MockIssueFiler. 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 (*MockIssueFiler) CreateIssue ¶ added in v0.5.0
func (_mock *MockIssueFiler) CreateIssue(ctx context.Context, owner string, repo string, draft forge.IssueDraft) (forge.Issue, error)
CreateIssue provides a mock function for the type MockIssueFiler
func (*MockIssueFiler) EXPECT ¶ added in v0.5.0
func (_m *MockIssueFiler) EXPECT() *MockIssueFiler_Expecter
type MockIssueFiler_CreateIssue_Call ¶ added in v0.5.0
MockIssueFiler_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*MockIssueFiler_CreateIssue_Call) Return ¶ added in v0.5.0
func (_c *MockIssueFiler_CreateIssue_Call) Return(issue forge.Issue, err error) *MockIssueFiler_CreateIssue_Call
func (*MockIssueFiler_CreateIssue_Call) Run ¶ added in v0.5.0
func (_c *MockIssueFiler_CreateIssue_Call) Run(run func(ctx context.Context, owner string, repo string, draft forge.IssueDraft)) *MockIssueFiler_CreateIssue_Call
func (*MockIssueFiler_CreateIssue_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIssueFiler_CreateIssue_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, draft forge.IssueDraft) (forge.Issue, error)) *MockIssueFiler_CreateIssue_Call
type MockIssueFiler_Expecter ¶ added in v0.5.0
type MockIssueFiler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIssueFiler_Expecter) CreateIssue ¶ added in v0.5.0
func (_e *MockIssueFiler_Expecter) CreateIssue(ctx any, owner any, repo any, draft any) *MockIssueFiler_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- draft forge.IssueDraft
type MockIssues ¶ added in v0.5.0
MockIssues is an autogenerated mock type for the Issues type
func NewMockIssues ¶ added in v0.5.0
func NewMockIssues(t interface {
mock.TestingT
Cleanup(func())
}) *MockIssues
NewMockIssues creates a new instance of MockIssues. 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 (*MockIssues) EXPECT ¶ added in v0.5.0
func (_m *MockIssues) EXPECT() *MockIssues_Expecter
func (*MockIssues) GetIssue ¶ added in v0.5.0
func (_mock *MockIssues) GetIssue(ctx context.Context, owner string, repo string, number int) (forge.Issue, error)
GetIssue provides a mock function for the type MockIssues
func (*MockIssues) ListComments ¶ added in v0.5.0
func (_mock *MockIssues) ListComments(ctx context.Context, owner string, repo string, number int, q forge.CommentQuery, yield func(forge.Comment) bool) error
ListComments provides a mock function for the type MockIssues
func (*MockIssues) SearchIssues ¶ added in v0.5.0
func (_mock *MockIssues) SearchIssues(ctx context.Context, owner string, repo string, q forge.IssueQuery, yield func(forge.Issue) bool) error
SearchIssues provides a mock function for the type MockIssues
type MockIssues_Expecter ¶ added in v0.5.0
type MockIssues_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIssues_Expecter) GetIssue ¶ added in v0.5.0
func (_e *MockIssues_Expecter) GetIssue(ctx any, owner any, repo any, number any) *MockIssues_GetIssue_Call
GetIssue is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
func (*MockIssues_Expecter) ListComments ¶ added in v0.5.0
func (_e *MockIssues_Expecter) ListComments(ctx any, owner any, repo any, number any, q any, yield any) *MockIssues_ListComments_Call
ListComments is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- q forge.CommentQuery
- yield func(forge.Comment) bool
func (*MockIssues_Expecter) SearchIssues ¶ added in v0.5.0
func (_e *MockIssues_Expecter) SearchIssues(ctx any, owner any, repo any, q any, yield any) *MockIssues_SearchIssues_Call
SearchIssues is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- q forge.IssueQuery
- yield func(forge.Issue) bool
type MockIssues_GetIssue_Call ¶ added in v0.5.0
MockIssues_GetIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIssue'
func (*MockIssues_GetIssue_Call) Return ¶ added in v0.5.0
func (_c *MockIssues_GetIssue_Call) Return(issue forge.Issue, err error) *MockIssues_GetIssue_Call
func (*MockIssues_GetIssue_Call) Run ¶ added in v0.5.0
func (_c *MockIssues_GetIssue_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockIssues_GetIssue_Call
func (*MockIssues_GetIssue_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIssues_GetIssue_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) (forge.Issue, error)) *MockIssues_GetIssue_Call
type MockIssues_ListComments_Call ¶ added in v0.5.0
MockIssues_ListComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListComments'
func (*MockIssues_ListComments_Call) Return ¶ added in v0.5.0
func (_c *MockIssues_ListComments_Call) Return(err error) *MockIssues_ListComments_Call
func (*MockIssues_ListComments_Call) Run ¶ added in v0.5.0
func (_c *MockIssues_ListComments_Call) Run(run func(ctx context.Context, owner string, repo string, number int, q forge.CommentQuery, yield func(forge.Comment) bool)) *MockIssues_ListComments_Call
func (*MockIssues_ListComments_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIssues_ListComments_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, q forge.CommentQuery, yield func(forge.Comment) bool) error) *MockIssues_ListComments_Call
type MockIssues_SearchIssues_Call ¶ added in v0.5.0
MockIssues_SearchIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchIssues'
func (*MockIssues_SearchIssues_Call) Return ¶ added in v0.5.0
func (_c *MockIssues_SearchIssues_Call) Return(err error) *MockIssues_SearchIssues_Call
func (*MockIssues_SearchIssues_Call) Run ¶ added in v0.5.0
func (_c *MockIssues_SearchIssues_Call) Run(run func(ctx context.Context, owner string, repo string, q forge.IssueQuery, yield func(forge.Issue) bool)) *MockIssues_SearchIssues_Call
func (*MockIssues_SearchIssues_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockIssues_SearchIssues_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, q forge.IssueQuery, yield func(forge.Issue) bool) error) *MockIssues_SearchIssues_Call
type MockProvider ¶
MockProvider is an autogenerated mock type for the Provider type
func NewMockProvider ¶
func NewMockProvider(t interface {
mock.TestingT
Cleanup(func())
}) *MockProvider
NewMockProvider creates a new instance of MockProvider. 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 (*MockProvider) DownloadReleaseAsset ¶
func (_mock *MockProvider) DownloadReleaseAsset(ctx context.Context, owner string, repo string, asset forge.ReleaseAsset) (io.ReadCloser, string, error)
DownloadReleaseAsset provides a mock function for the type MockProvider
func (*MockProvider) EXPECT ¶
func (_m *MockProvider) EXPECT() *MockProvider_Expecter
func (*MockProvider) GetLatestRelease ¶
func (_mock *MockProvider) GetLatestRelease(ctx context.Context, owner string, repo string) (forge.Release, error)
GetLatestRelease provides a mock function for the type MockProvider
type MockProvider_DownloadReleaseAsset_Call ¶
MockProvider_DownloadReleaseAsset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadReleaseAsset'
func (*MockProvider_DownloadReleaseAsset_Call) Return ¶
func (_c *MockProvider_DownloadReleaseAsset_Call) Return(readCloser io.ReadCloser, s string, err error) *MockProvider_DownloadReleaseAsset_Call
func (*MockProvider_DownloadReleaseAsset_Call) Run ¶
func (_c *MockProvider_DownloadReleaseAsset_Call) Run(run func(ctx context.Context, owner string, repo string, asset forge.ReleaseAsset)) *MockProvider_DownloadReleaseAsset_Call
func (*MockProvider_DownloadReleaseAsset_Call) RunAndReturn ¶
func (_c *MockProvider_DownloadReleaseAsset_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, asset forge.ReleaseAsset) (io.ReadCloser, string, error)) *MockProvider_DownloadReleaseAsset_Call
type MockProvider_Expecter ¶
type MockProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProvider_Expecter) DownloadReleaseAsset ¶
func (_e *MockProvider_Expecter) DownloadReleaseAsset(ctx any, owner any, repo any, asset any) *MockProvider_DownloadReleaseAsset_Call
DownloadReleaseAsset is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- asset forge.ReleaseAsset
func (*MockProvider_Expecter) GetLatestRelease ¶
func (_e *MockProvider_Expecter) GetLatestRelease(ctx any, owner any, repo any) *MockProvider_GetLatestRelease_Call
GetLatestRelease is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
func (*MockProvider_Expecter) GetReleaseByTag ¶
func (_e *MockProvider_Expecter) GetReleaseByTag(ctx any, owner any, repo any, tag any) *MockProvider_GetReleaseByTag_Call
GetReleaseByTag is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tag string
func (*MockProvider_Expecter) ListReleases ¶
func (_e *MockProvider_Expecter) ListReleases(ctx any, owner any, repo any, limit any) *MockProvider_ListReleases_Call
ListReleases is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- limit int
type MockProvider_GetLatestRelease_Call ¶
MockProvider_GetLatestRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestRelease'
func (*MockProvider_GetLatestRelease_Call) Return ¶
func (_c *MockProvider_GetLatestRelease_Call) Return(release forge.Release, err error) *MockProvider_GetLatestRelease_Call
func (*MockProvider_GetLatestRelease_Call) Run ¶
func (_c *MockProvider_GetLatestRelease_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockProvider_GetLatestRelease_Call
func (*MockProvider_GetLatestRelease_Call) RunAndReturn ¶
func (_c *MockProvider_GetLatestRelease_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) (forge.Release, error)) *MockProvider_GetLatestRelease_Call
type MockProvider_GetReleaseByTag_Call ¶
MockProvider_GetReleaseByTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseByTag'
func (*MockProvider_GetReleaseByTag_Call) Return ¶
func (_c *MockProvider_GetReleaseByTag_Call) Return(release forge.Release, err error) *MockProvider_GetReleaseByTag_Call
func (*MockProvider_GetReleaseByTag_Call) Run ¶
func (_c *MockProvider_GetReleaseByTag_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *MockProvider_GetReleaseByTag_Call
func (*MockProvider_GetReleaseByTag_Call) RunAndReturn ¶
func (_c *MockProvider_GetReleaseByTag_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tag string) (forge.Release, error)) *MockProvider_GetReleaseByTag_Call
type MockProvider_ListReleases_Call ¶
MockProvider_ListReleases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReleases'
func (*MockProvider_ListReleases_Call) Return ¶
func (_c *MockProvider_ListReleases_Call) Return(releases []forge.Release, err error) *MockProvider_ListReleases_Call
func (*MockProvider_ListReleases_Call) Run ¶
func (_c *MockProvider_ListReleases_Call) Run(run func(ctx context.Context, owner string, repo string, limit int)) *MockProvider_ListReleases_Call
func (*MockProvider_ListReleases_Call) RunAndReturn ¶
func (_c *MockProvider_ListReleases_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, limit int) ([]forge.Release, error)) *MockProvider_ListReleases_Call
type MockPullRequestCommenter ¶ added in v0.26.0
MockPullRequestCommenter is an autogenerated mock type for the PullRequestCommenter type
func NewMockPullRequestCommenter ¶ added in v0.26.0
func NewMockPullRequestCommenter(t interface {
mock.TestingT
Cleanup(func())
}) *MockPullRequestCommenter
NewMockPullRequestCommenter creates a new instance of MockPullRequestCommenter. 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 (*MockPullRequestCommenter) Comment ¶ added in v0.26.0
func (_mock *MockPullRequestCommenter) Comment(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)
Comment provides a mock function for the type MockPullRequestCommenter
func (*MockPullRequestCommenter) EXPECT ¶ added in v0.26.0
func (_m *MockPullRequestCommenter) EXPECT() *MockPullRequestCommenter_Expecter
type MockPullRequestCommenter_Comment_Call ¶ added in v0.26.0
MockPullRequestCommenter_Comment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Comment'
func (*MockPullRequestCommenter_Comment_Call) Return ¶ added in v0.26.0
func (_c *MockPullRequestCommenter_Comment_Call) Return(comment forge.Comment, err error) *MockPullRequestCommenter_Comment_Call
func (*MockPullRequestCommenter_Comment_Call) Run ¶ added in v0.26.0
func (_c *MockPullRequestCommenter_Comment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft)) *MockPullRequestCommenter_Comment_Call
func (*MockPullRequestCommenter_Comment_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockPullRequestCommenter_Comment_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, draft forge.CommentDraft) (forge.Comment, error)) *MockPullRequestCommenter_Comment_Call
type MockPullRequestCommenter_Expecter ¶ added in v0.26.0
type MockPullRequestCommenter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPullRequestCommenter_Expecter) Comment ¶ added in v0.26.0
func (_e *MockPullRequestCommenter_Expecter) Comment(ctx any, owner any, repo any, number any, draft any) *MockPullRequestCommenter_Comment_Call
Comment is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- draft forge.CommentDraft
func (*MockPullRequestCommenter_Expecter) ListRequestComments ¶ added in v0.26.0
func (_e *MockPullRequestCommenter_Expecter) ListRequestComments(ctx any, owner any, repo any, number any) *MockPullRequestCommenter_ListRequestComments_Call
ListRequestComments is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
type MockPullRequestCommenter_ListRequestComments_Call ¶ added in v0.26.0
MockPullRequestCommenter_ListRequestComments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRequestComments'
func (*MockPullRequestCommenter_ListRequestComments_Call) Return ¶ added in v0.26.0
func (_c *MockPullRequestCommenter_ListRequestComments_Call) Return(comments []forge.Comment, err error) *MockPullRequestCommenter_ListRequestComments_Call
func (*MockPullRequestCommenter_ListRequestComments_Call) Run ¶ added in v0.26.0
func (_c *MockPullRequestCommenter_ListRequestComments_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestCommenter_ListRequestComments_Call
func (*MockPullRequestCommenter_ListRequestComments_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockPullRequestCommenter_ListRequestComments_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) ([]forge.Comment, error)) *MockPullRequestCommenter_ListRequestComments_Call
type MockRelease ¶
MockRelease is an autogenerated mock type for the Release type
func NewMockRelease ¶
func NewMockRelease(t interface {
mock.TestingT
Cleanup(func())
}) *MockRelease
NewMockRelease creates a new instance of MockRelease. 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 (*MockRelease) EXPECT ¶
func (_m *MockRelease) EXPECT() *MockRelease_Expecter
func (*MockRelease) GetAssets ¶
func (_mock *MockRelease) GetAssets() []forge.ReleaseAsset
GetAssets provides a mock function for the type MockRelease
func (*MockRelease) GetBody ¶
func (_mock *MockRelease) GetBody() string
GetBody provides a mock function for the type MockRelease
func (*MockRelease) GetDraft ¶
func (_mock *MockRelease) GetDraft() bool
GetDraft provides a mock function for the type MockRelease
func (*MockRelease) GetName ¶
func (_mock *MockRelease) GetName() string
GetName provides a mock function for the type MockRelease
func (*MockRelease) GetTagName ¶
func (_mock *MockRelease) GetTagName() string
GetTagName provides a mock function for the type MockRelease
type MockReleaseAsset ¶
MockReleaseAsset is an autogenerated mock type for the ReleaseAsset type
func NewMockReleaseAsset ¶
func NewMockReleaseAsset(t interface {
mock.TestingT
Cleanup(func())
}) *MockReleaseAsset
NewMockReleaseAsset creates a new instance of MockReleaseAsset. 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 (*MockReleaseAsset) EXPECT ¶
func (_m *MockReleaseAsset) EXPECT() *MockReleaseAsset_Expecter
func (*MockReleaseAsset) GetBrowserDownloadURL ¶
func (_mock *MockReleaseAsset) GetBrowserDownloadURL() string
GetBrowserDownloadURL provides a mock function for the type MockReleaseAsset
func (*MockReleaseAsset) GetID ¶
func (_mock *MockReleaseAsset) GetID() int64
GetID provides a mock function for the type MockReleaseAsset
func (*MockReleaseAsset) GetName ¶
func (_mock *MockReleaseAsset) GetName() string
GetName provides a mock function for the type MockReleaseAsset
type MockReleaseAsset_Expecter ¶
type MockReleaseAsset_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReleaseAsset_Expecter) GetBrowserDownloadURL ¶
func (_e *MockReleaseAsset_Expecter) GetBrowserDownloadURL() *MockReleaseAsset_GetBrowserDownloadURL_Call
GetBrowserDownloadURL is a helper method to define mock.On call
func (*MockReleaseAsset_Expecter) GetID ¶
func (_e *MockReleaseAsset_Expecter) GetID() *MockReleaseAsset_GetID_Call
GetID is a helper method to define mock.On call
func (*MockReleaseAsset_Expecter) GetName ¶
func (_e *MockReleaseAsset_Expecter) GetName() *MockReleaseAsset_GetName_Call
GetName is a helper method to define mock.On call
type MockReleaseAsset_GetBrowserDownloadURL_Call ¶
MockReleaseAsset_GetBrowserDownloadURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBrowserDownloadURL'
func (*MockReleaseAsset_GetBrowserDownloadURL_Call) Return ¶
func (_c *MockReleaseAsset_GetBrowserDownloadURL_Call) Return(s string) *MockReleaseAsset_GetBrowserDownloadURL_Call
func (*MockReleaseAsset_GetBrowserDownloadURL_Call) Run ¶
func (_c *MockReleaseAsset_GetBrowserDownloadURL_Call) Run(run func()) *MockReleaseAsset_GetBrowserDownloadURL_Call
func (*MockReleaseAsset_GetBrowserDownloadURL_Call) RunAndReturn ¶
func (_c *MockReleaseAsset_GetBrowserDownloadURL_Call) RunAndReturn(run func() string) *MockReleaseAsset_GetBrowserDownloadURL_Call
type MockReleaseAsset_GetID_Call ¶
MockReleaseAsset_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*MockReleaseAsset_GetID_Call) Return ¶
func (_c *MockReleaseAsset_GetID_Call) Return(n int64) *MockReleaseAsset_GetID_Call
func (*MockReleaseAsset_GetID_Call) Run ¶
func (_c *MockReleaseAsset_GetID_Call) Run(run func()) *MockReleaseAsset_GetID_Call
func (*MockReleaseAsset_GetID_Call) RunAndReturn ¶
func (_c *MockReleaseAsset_GetID_Call) RunAndReturn(run func() int64) *MockReleaseAsset_GetID_Call
type MockReleaseAsset_GetName_Call ¶
MockReleaseAsset_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'
func (*MockReleaseAsset_GetName_Call) Return ¶
func (_c *MockReleaseAsset_GetName_Call) Return(s string) *MockReleaseAsset_GetName_Call
func (*MockReleaseAsset_GetName_Call) Run ¶
func (_c *MockReleaseAsset_GetName_Call) Run(run func()) *MockReleaseAsset_GetName_Call
func (*MockReleaseAsset_GetName_Call) RunAndReturn ¶
func (_c *MockReleaseAsset_GetName_Call) RunAndReturn(run func() string) *MockReleaseAsset_GetName_Call
type MockRelease_Expecter ¶
type MockRelease_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRelease_Expecter) GetAssets ¶
func (_e *MockRelease_Expecter) GetAssets() *MockRelease_GetAssets_Call
GetAssets is a helper method to define mock.On call
func (*MockRelease_Expecter) GetBody ¶
func (_e *MockRelease_Expecter) GetBody() *MockRelease_GetBody_Call
GetBody is a helper method to define mock.On call
func (*MockRelease_Expecter) GetDraft ¶
func (_e *MockRelease_Expecter) GetDraft() *MockRelease_GetDraft_Call
GetDraft is a helper method to define mock.On call
func (*MockRelease_Expecter) GetName ¶
func (_e *MockRelease_Expecter) GetName() *MockRelease_GetName_Call
GetName is a helper method to define mock.On call
func (*MockRelease_Expecter) GetTagName ¶
func (_e *MockRelease_Expecter) GetTagName() *MockRelease_GetTagName_Call
GetTagName is a helper method to define mock.On call
type MockRelease_GetAssets_Call ¶
MockRelease_GetAssets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssets'
func (*MockRelease_GetAssets_Call) Return ¶
func (_c *MockRelease_GetAssets_Call) Return(releaseAssets []forge.ReleaseAsset) *MockRelease_GetAssets_Call
func (*MockRelease_GetAssets_Call) Run ¶
func (_c *MockRelease_GetAssets_Call) Run(run func()) *MockRelease_GetAssets_Call
func (*MockRelease_GetAssets_Call) RunAndReturn ¶
func (_c *MockRelease_GetAssets_Call) RunAndReturn(run func() []forge.ReleaseAsset) *MockRelease_GetAssets_Call
type MockRelease_GetBody_Call ¶
MockRelease_GetBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBody'
func (*MockRelease_GetBody_Call) Return ¶
func (_c *MockRelease_GetBody_Call) Return(s string) *MockRelease_GetBody_Call
func (*MockRelease_GetBody_Call) Run ¶
func (_c *MockRelease_GetBody_Call) Run(run func()) *MockRelease_GetBody_Call
func (*MockRelease_GetBody_Call) RunAndReturn ¶
func (_c *MockRelease_GetBody_Call) RunAndReturn(run func() string) *MockRelease_GetBody_Call
type MockRelease_GetDraft_Call ¶
MockRelease_GetDraft_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDraft'
func (*MockRelease_GetDraft_Call) Return ¶
func (_c *MockRelease_GetDraft_Call) Return(b bool) *MockRelease_GetDraft_Call
func (*MockRelease_GetDraft_Call) Run ¶
func (_c *MockRelease_GetDraft_Call) Run(run func()) *MockRelease_GetDraft_Call
func (*MockRelease_GetDraft_Call) RunAndReturn ¶
func (_c *MockRelease_GetDraft_Call) RunAndReturn(run func() bool) *MockRelease_GetDraft_Call
type MockRelease_GetName_Call ¶
MockRelease_GetName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetName'
func (*MockRelease_GetName_Call) Return ¶
func (_c *MockRelease_GetName_Call) Return(s string) *MockRelease_GetName_Call
func (*MockRelease_GetName_Call) Run ¶
func (_c *MockRelease_GetName_Call) Run(run func()) *MockRelease_GetName_Call
func (*MockRelease_GetName_Call) RunAndReturn ¶
func (_c *MockRelease_GetName_Call) RunAndReturn(run func() string) *MockRelease_GetName_Call
type MockRelease_GetTagName_Call ¶
MockRelease_GetTagName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTagName'
func (*MockRelease_GetTagName_Call) Return ¶
func (_c *MockRelease_GetTagName_Call) Return(s string) *MockRelease_GetTagName_Call
func (*MockRelease_GetTagName_Call) Run ¶
func (_c *MockRelease_GetTagName_Call) Run(run func()) *MockRelease_GetTagName_Call
func (*MockRelease_GetTagName_Call) RunAndReturn ¶
func (_c *MockRelease_GetTagName_Call) RunAndReturn(run func() string) *MockRelease_GetTagName_Call
type MockRepositories ¶ added in v0.4.0
MockRepositories is an autogenerated mock type for the Repositories type
func NewMockRepositories ¶ added in v0.4.0
func NewMockRepositories(t interface {
mock.TestingT
Cleanup(func())
}) *MockRepositories
NewMockRepositories creates a new instance of MockRepositories. 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 (*MockRepositories) EXPECT ¶ added in v0.4.0
func (_m *MockRepositories) EXPECT() *MockRepositories_Expecter
func (*MockRepositories) ListRepositories ¶ added in v0.4.0
func (_mock *MockRepositories) ListRepositories(ctx context.Context, namespace string, opts forge.RepositoryListOptions, yield func(forge.Repository) bool) error
ListRepositories provides a mock function for the type MockRepositories
type MockRepositories_Expecter ¶ added in v0.4.0
type MockRepositories_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepositories_Expecter) ListRepositories ¶ added in v0.4.0
func (_e *MockRepositories_Expecter) ListRepositories(ctx any, namespace any, opts any, yield any) *MockRepositories_ListRepositories_Call
ListRepositories is a helper method to define mock.On call
- ctx context.Context
- namespace string
- opts forge.RepositoryListOptions
- yield func(forge.Repository) bool
type MockRepositories_ListRepositories_Call ¶ added in v0.4.0
MockRepositories_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
func (*MockRepositories_ListRepositories_Call) Return ¶ added in v0.4.0
func (_c *MockRepositories_ListRepositories_Call) Return(err error) *MockRepositories_ListRepositories_Call
func (*MockRepositories_ListRepositories_Call) Run ¶ added in v0.4.0
func (_c *MockRepositories_ListRepositories_Call) Run(run func(ctx context.Context, namespace string, opts forge.RepositoryListOptions, yield func(forge.Repository) bool)) *MockRepositories_ListRepositories_Call
func (*MockRepositories_ListRepositories_Call) RunAndReturn ¶ added in v0.4.0
func (_c *MockRepositories_ListRepositories_Call) RunAndReturn(run func(ctx context.Context, namespace string, opts forge.RepositoryListOptions, yield func(forge.Repository) bool) error) *MockRepositories_ListRepositories_Call
type MockRepositoryCreator ¶ added in v0.26.0
MockRepositoryCreator is an autogenerated mock type for the RepositoryCreator type
func NewMockRepositoryCreator ¶ added in v0.26.0
func NewMockRepositoryCreator(t interface {
mock.TestingT
Cleanup(func())
}) *MockRepositoryCreator
NewMockRepositoryCreator creates a new instance of MockRepositoryCreator. 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 (*MockRepositoryCreator) CreateRepository ¶ added in v0.26.0
func (_mock *MockRepositoryCreator) CreateRepository(ctx context.Context, owner string, draft forge.RepositoryDraft) (forge.Repository, error)
CreateRepository provides a mock function for the type MockRepositoryCreator
func (*MockRepositoryCreator) EXPECT ¶ added in v0.26.0
func (_m *MockRepositoryCreator) EXPECT() *MockRepositoryCreator_Expecter
type MockRepositoryCreator_CreateRepository_Call ¶ added in v0.26.0
MockRepositoryCreator_CreateRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepository'
func (*MockRepositoryCreator_CreateRepository_Call) Return ¶ added in v0.26.0
func (_c *MockRepositoryCreator_CreateRepository_Call) Return(repository forge.Repository, err error) *MockRepositoryCreator_CreateRepository_Call
func (*MockRepositoryCreator_CreateRepository_Call) Run ¶ added in v0.26.0
func (_c *MockRepositoryCreator_CreateRepository_Call) Run(run func(ctx context.Context, owner string, draft forge.RepositoryDraft)) *MockRepositoryCreator_CreateRepository_Call
func (*MockRepositoryCreator_CreateRepository_Call) RunAndReturn ¶ added in v0.26.0
func (_c *MockRepositoryCreator_CreateRepository_Call) RunAndReturn(run func(ctx context.Context, owner string, draft forge.RepositoryDraft) (forge.Repository, error)) *MockRepositoryCreator_CreateRepository_Call
type MockRepositoryCreator_Expecter ¶ added in v0.26.0
type MockRepositoryCreator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepositoryCreator_Expecter) CreateRepository ¶ added in v0.26.0
func (_e *MockRepositoryCreator_Expecter) CreateRepository(ctx any, owner any, draft any) *MockRepositoryCreator_CreateRepository_Call
CreateRepository is a helper method to define mock.On call
- ctx context.Context
- owner string
- draft forge.RepositoryDraft
type MockSignatureProvider ¶
MockSignatureProvider is an autogenerated mock type for the SignatureProvider type
func NewMockSignatureProvider ¶
func NewMockSignatureProvider(t interface {
mock.TestingT
Cleanup(func())
}) *MockSignatureProvider
NewMockSignatureProvider creates a new instance of MockSignatureProvider. 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 (*MockSignatureProvider) DownloadSignature ¶
func (_mock *MockSignatureProvider) DownloadSignature(ctx context.Context, rel forge.Release, maxBytes int64) ([]byte, error)
DownloadSignature provides a mock function for the type MockSignatureProvider
func (*MockSignatureProvider) EXPECT ¶
func (_m *MockSignatureProvider) EXPECT() *MockSignatureProvider_Expecter
type MockSignatureProvider_DownloadSignature_Call ¶
MockSignatureProvider_DownloadSignature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadSignature'
func (*MockSignatureProvider_DownloadSignature_Call) Return ¶
func (_c *MockSignatureProvider_DownloadSignature_Call) Return(bytes []byte, err error) *MockSignatureProvider_DownloadSignature_Call
func (*MockSignatureProvider_DownloadSignature_Call) Run ¶
func (_c *MockSignatureProvider_DownloadSignature_Call) Run(run func(ctx context.Context, rel forge.Release, maxBytes int64)) *MockSignatureProvider_DownloadSignature_Call
func (*MockSignatureProvider_DownloadSignature_Call) RunAndReturn ¶
func (_c *MockSignatureProvider_DownloadSignature_Call) RunAndReturn(run func(ctx context.Context, rel forge.Release, maxBytes int64) ([]byte, error)) *MockSignatureProvider_DownloadSignature_Call
type MockSignatureProvider_Expecter ¶
type MockSignatureProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSignatureProvider_Expecter) DownloadSignature ¶
func (_e *MockSignatureProvider_Expecter) DownloadSignature(ctx any, rel any, maxBytes any) *MockSignatureProvider_DownloadSignature_Call
DownloadSignature is a helper method to define mock.On call
- ctx context.Context
- rel forge.Release
- maxBytes int64
type MockSites ¶ added in v0.4.0
MockSites is an autogenerated mock type for the Sites type
func NewMockSites ¶ added in v0.4.0
NewMockSites creates a new instance of MockSites. 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 (*MockSites) EXPECT ¶ added in v0.4.0
func (_m *MockSites) EXPECT() *MockSites_Expecter
type MockSites_Expecter ¶ added in v0.4.0
type MockSites_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSites_Expecter) GetSite ¶ added in v0.4.0
func (_e *MockSites_Expecter) GetSite(ctx any, owner any, repo any) *MockSites_GetSite_Call
GetSite is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
type MockSites_GetSite_Call ¶ added in v0.4.0
MockSites_GetSite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSite'
func (*MockSites_GetSite_Call) Return ¶ added in v0.4.0
func (_c *MockSites_GetSite_Call) Return(site forge.Site, err error) *MockSites_GetSite_Call
func (*MockSites_GetSite_Call) Run ¶ added in v0.4.0
func (_c *MockSites_GetSite_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockSites_GetSite_Call
func (*MockSites_GetSite_Call) RunAndReturn ¶ added in v0.4.0
func (_c *MockSites_GetSite_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) (forge.Site, error)) *MockSites_GetSite_Call
type MockSnippets ¶ added in v0.11.0
MockSnippets is an autogenerated mock type for the Snippets type
func NewMockSnippets ¶ added in v0.11.0
func NewMockSnippets(t interface {
mock.TestingT
Cleanup(func())
}) *MockSnippets
NewMockSnippets creates a new instance of MockSnippets. 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 (*MockSnippets) CreateSnippet ¶ added in v0.11.0
func (_mock *MockSnippets) CreateSnippet(ctx context.Context, scope forge.SnippetScope, opts forge.SnippetCreateOptions) (forge.Snippet, error)
CreateSnippet provides a mock function for the type MockSnippets
func (*MockSnippets) DeleteSnippet ¶ added in v0.11.0
func (_mock *MockSnippets) DeleteSnippet(ctx context.Context, scope forge.SnippetScope, id string) error
DeleteSnippet provides a mock function for the type MockSnippets
func (*MockSnippets) EXPECT ¶ added in v0.11.0
func (_m *MockSnippets) EXPECT() *MockSnippets_Expecter
func (*MockSnippets) GetSnippet ¶ added in v0.11.0
func (_mock *MockSnippets) GetSnippet(ctx context.Context, scope forge.SnippetScope, id string) (forge.Snippet, error)
GetSnippet provides a mock function for the type MockSnippets
func (*MockSnippets) ListSnippets ¶ added in v0.11.0
func (_mock *MockSnippets) ListSnippets(ctx context.Context, scope forge.SnippetScope) ([]forge.Snippet, error)
ListSnippets provides a mock function for the type MockSnippets
type MockSnippets_CreateSnippet_Call ¶ added in v0.11.0
MockSnippets_CreateSnippet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSnippet'
func (*MockSnippets_CreateSnippet_Call) Return ¶ added in v0.11.0
func (_c *MockSnippets_CreateSnippet_Call) Return(snippet forge.Snippet, err error) *MockSnippets_CreateSnippet_Call
func (*MockSnippets_CreateSnippet_Call) Run ¶ added in v0.11.0
func (_c *MockSnippets_CreateSnippet_Call) Run(run func(ctx context.Context, scope forge.SnippetScope, opts forge.SnippetCreateOptions)) *MockSnippets_CreateSnippet_Call
func (*MockSnippets_CreateSnippet_Call) RunAndReturn ¶ added in v0.11.0
func (_c *MockSnippets_CreateSnippet_Call) RunAndReturn(run func(ctx context.Context, scope forge.SnippetScope, opts forge.SnippetCreateOptions) (forge.Snippet, error)) *MockSnippets_CreateSnippet_Call
type MockSnippets_DeleteSnippet_Call ¶ added in v0.11.0
MockSnippets_DeleteSnippet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSnippet'
func (*MockSnippets_DeleteSnippet_Call) Return ¶ added in v0.11.0
func (_c *MockSnippets_DeleteSnippet_Call) Return(err error) *MockSnippets_DeleteSnippet_Call
func (*MockSnippets_DeleteSnippet_Call) Run ¶ added in v0.11.0
func (_c *MockSnippets_DeleteSnippet_Call) Run(run func(ctx context.Context, scope forge.SnippetScope, id string)) *MockSnippets_DeleteSnippet_Call
func (*MockSnippets_DeleteSnippet_Call) RunAndReturn ¶ added in v0.11.0
func (_c *MockSnippets_DeleteSnippet_Call) RunAndReturn(run func(ctx context.Context, scope forge.SnippetScope, id string) error) *MockSnippets_DeleteSnippet_Call
type MockSnippets_Expecter ¶ added in v0.11.0
type MockSnippets_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSnippets_Expecter) CreateSnippet ¶ added in v0.11.0
func (_e *MockSnippets_Expecter) CreateSnippet(ctx any, scope any, opts any) *MockSnippets_CreateSnippet_Call
CreateSnippet is a helper method to define mock.On call
- ctx context.Context
- scope forge.SnippetScope
- opts forge.SnippetCreateOptions
func (*MockSnippets_Expecter) DeleteSnippet ¶ added in v0.11.0
func (_e *MockSnippets_Expecter) DeleteSnippet(ctx any, scope any, id any) *MockSnippets_DeleteSnippet_Call
DeleteSnippet is a helper method to define mock.On call
- ctx context.Context
- scope forge.SnippetScope
- id string
func (*MockSnippets_Expecter) GetSnippet ¶ added in v0.11.0
func (_e *MockSnippets_Expecter) GetSnippet(ctx any, scope any, id any) *MockSnippets_GetSnippet_Call
GetSnippet is a helper method to define mock.On call
- ctx context.Context
- scope forge.SnippetScope
- id string
func (*MockSnippets_Expecter) ListSnippets ¶ added in v0.11.0
func (_e *MockSnippets_Expecter) ListSnippets(ctx any, scope any) *MockSnippets_ListSnippets_Call
ListSnippets is a helper method to define mock.On call
- ctx context.Context
- scope forge.SnippetScope
type MockSnippets_GetSnippet_Call ¶ added in v0.11.0
MockSnippets_GetSnippet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSnippet'
func (*MockSnippets_GetSnippet_Call) Return ¶ added in v0.11.0
func (_c *MockSnippets_GetSnippet_Call) Return(snippet forge.Snippet, err error) *MockSnippets_GetSnippet_Call
func (*MockSnippets_GetSnippet_Call) Run ¶ added in v0.11.0
func (_c *MockSnippets_GetSnippet_Call) Run(run func(ctx context.Context, scope forge.SnippetScope, id string)) *MockSnippets_GetSnippet_Call
func (*MockSnippets_GetSnippet_Call) RunAndReturn ¶ added in v0.11.0
func (_c *MockSnippets_GetSnippet_Call) RunAndReturn(run func(ctx context.Context, scope forge.SnippetScope, id string) (forge.Snippet, error)) *MockSnippets_GetSnippet_Call
type MockSnippets_ListSnippets_Call ¶ added in v0.11.0
MockSnippets_ListSnippets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSnippets'
func (*MockSnippets_ListSnippets_Call) Return ¶ added in v0.11.0
func (_c *MockSnippets_ListSnippets_Call) Return(snippets []forge.Snippet, err error) *MockSnippets_ListSnippets_Call
func (*MockSnippets_ListSnippets_Call) Run ¶ added in v0.11.0
func (_c *MockSnippets_ListSnippets_Call) Run(run func(ctx context.Context, scope forge.SnippetScope)) *MockSnippets_ListSnippets_Call
func (*MockSnippets_ListSnippets_Call) RunAndReturn ¶ added in v0.11.0
func (_c *MockSnippets_ListSnippets_Call) RunAndReturn(run func(ctx context.Context, scope forge.SnippetScope) ([]forge.Snippet, error)) *MockSnippets_ListSnippets_Call
type MockWikis ¶ added in v0.24.0
MockWikis is an autogenerated mock type for the Wikis type
func NewMockWikis ¶ added in v0.24.0
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) CreateWikiPage ¶ added in v0.24.0
func (_mock *MockWikis) CreateWikiPage(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error
CreateWikiPage provides a mock function for the type MockWikis
func (*MockWikis) EXPECT ¶ added in v0.24.0
func (_m *MockWikis) EXPECT() *MockWikis_Expecter
func (*MockWikis) GetWikiPage ¶ added in v0.24.0
func (_mock *MockWikis) GetWikiPage(ctx context.Context, owner string, repo string, path string, maxBytes int64) (forge.WikiPage, error)
GetWikiPage provides a mock function for the type MockWikis
type MockWikis_CreateWikiPage_Call ¶ added in v0.24.0
MockWikis_CreateWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWikiPage'
func (*MockWikis_CreateWikiPage_Call) Return ¶ added in v0.24.0
func (_c *MockWikis_CreateWikiPage_Call) Return(err error) *MockWikis_CreateWikiPage_Call
func (*MockWikis_CreateWikiPage_Call) Run ¶ added in v0.24.0
func (_c *MockWikis_CreateWikiPage_Call) Run(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string)) *MockWikis_CreateWikiPage_Call
func (*MockWikis_CreateWikiPage_Call) RunAndReturn ¶ added in v0.24.0
func (_c *MockWikis_CreateWikiPage_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error) *MockWikis_CreateWikiPage_Call
type MockWikis_Expecter ¶ added in v0.24.0
type MockWikis_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWikis_Expecter) CreateWikiPage ¶ added in v0.24.0
func (_e *MockWikis_Expecter) CreateWikiPage(ctx any, owner any, repo any, page any, message any) *MockWikis_CreateWikiPage_Call
CreateWikiPage is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- page forge.WikiPage
- message string
func (*MockWikis_Expecter) GetWikiPage ¶ added in v0.24.0
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) ListWikiPages ¶ added in v0.24.0
func (_e *MockWikis_Expecter) ListWikiPages(ctx any, owner any, repo any) *MockWikis_ListWikiPages_Call
ListWikiPages is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
func (*MockWikis_Expecter) UpdateWikiPage ¶ added in v0.24.0
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 ¶ added in v0.24.0
MockWikis_GetWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWikiPage'
func (*MockWikis_GetWikiPage_Call) Return ¶ added in v0.24.0
func (_c *MockWikis_GetWikiPage_Call) Return(wikiPage forge.WikiPage, err error) *MockWikis_GetWikiPage_Call
func (*MockWikis_GetWikiPage_Call) Run ¶ added in v0.24.0
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 ¶ added in v0.24.0
type MockWikis_ListWikiPages_Call ¶ added in v0.24.0
MockWikis_ListWikiPages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWikiPages'
func (*MockWikis_ListWikiPages_Call) Return ¶ added in v0.24.0
func (_c *MockWikis_ListWikiPages_Call) Return(wikiPages []forge.WikiPage, err error) *MockWikis_ListWikiPages_Call
func (*MockWikis_ListWikiPages_Call) Run ¶ added in v0.24.0
func (_c *MockWikis_ListWikiPages_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockWikis_ListWikiPages_Call
func (*MockWikis_ListWikiPages_Call) RunAndReturn ¶ added in v0.24.0
func (_c *MockWikis_ListWikiPages_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) ([]forge.WikiPage, error)) *MockWikis_ListWikiPages_Call
type MockWikis_UpdateWikiPage_Call ¶ added in v0.24.0
MockWikis_UpdateWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWikiPage'
func (*MockWikis_UpdateWikiPage_Call) Return ¶ added in v0.24.0
func (_c *MockWikis_UpdateWikiPage_Call) Return(err error) *MockWikis_UpdateWikiPage_Call
func (*MockWikis_UpdateWikiPage_Call) Run ¶ added in v0.24.0
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 ¶ added in v0.24.0
func (_c *MockWikis_UpdateWikiPage_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error) *MockWikis_UpdateWikiPage_Call