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 MockCommitCheckReader
- type MockCommitCheckReader_Expecter
- type MockCommitCheckReader_ListCommitChecks_Call
- func (_c *MockCommitCheckReader_ListCommitChecks_Call) Return(checks []forge.Check, err error) *MockCommitCheckReader_ListCommitChecks_Call
- func (_c *MockCommitCheckReader_ListCommitChecks_Call) Run(run func(ctx context.Context, owner string, repo string, sha string)) *MockCommitCheckReader_ListCommitChecks_Call
- func (_c *MockCommitCheckReader_ListCommitChecks_Call) RunAndReturn(...) *MockCommitCheckReader_ListCommitChecks_Call
- type MockCommitComparer
- type MockCommitComparer_CompareCommits_Call
- func (_c *MockCommitComparer_CompareCommits_Call) Return(comparison forge.Comparison, err error) *MockCommitComparer_CompareCommits_Call
- func (_c *MockCommitComparer_CompareCommits_Call) Run(...) *MockCommitComparer_CompareCommits_Call
- func (_c *MockCommitComparer_CompareCommits_Call) RunAndReturn(...) *MockCommitComparer_CompareCommits_Call
- type MockCommitComparer_Expecter
- type MockCommitStatusReader
- type MockCommitStatusReader_Expecter
- type MockCommitStatusReader_GetCommitStatus_Call
- func (_c *MockCommitStatusReader_GetCommitStatus_Call) Return(commitStatus forge.CommitStatus, err error) *MockCommitStatusReader_GetCommitStatus_Call
- func (_c *MockCommitStatusReader_GetCommitStatus_Call) Run(run func(ctx context.Context, owner string, repo string, sha string)) *MockCommitStatusReader_GetCommitStatus_Call
- func (_c *MockCommitStatusReader_GetCommitStatus_Call) RunAndReturn(...) *MockCommitStatusReader_GetCommitStatus_Call
- type MockConfig
- type MockConfig_Expecter
- type MockConfig_GetString_Call
- type MockConfig_Sub_Call
- type MockContents
- type MockContents_Expecter
- type MockContents_GetFile_Call
- type MockCurrentUserReader
- type MockCurrentUserReader_CurrentUser_Call
- func (_c *MockCurrentUserReader_CurrentUser_Call) Return(user forge.User, err error) *MockCurrentUserReader_CurrentUser_Call
- func (_c *MockCurrentUserReader_CurrentUser_Call) Run(run func(ctx context.Context)) *MockCurrentUserReader_CurrentUser_Call
- func (_c *MockCurrentUserReader_CurrentUser_Call) RunAndReturn(run func(ctx context.Context) (forge.User, error)) *MockCurrentUserReader_CurrentUser_Call
- type MockCurrentUserReader_Expecter
- 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 MockMergeRuleReader
- type MockMergeRuleReader_Expecter
- type MockMergeRuleReader_GetMergeRules_Call
- func (_c *MockMergeRuleReader_GetMergeRules_Call) Return(mergeRules forge.MergeRules, err error) *MockMergeRuleReader_GetMergeRules_Call
- func (_c *MockMergeRuleReader_GetMergeRules_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *MockMergeRuleReader_GetMergeRules_Call
- func (_c *MockMergeRuleReader_GetMergeRules_Call) RunAndReturn(...) *MockMergeRuleReader_GetMergeRules_Call
- type MockPinnedMerger
- type MockPinnedMerger_Expecter
- type MockPinnedMerger_MergeAtHead_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 MockPullRequestChanges
- func (_m *MockPullRequestChanges) EXPECT() *MockPullRequestChanges_Expecter
- func (_mock *MockPullRequestChanges) RequestCommits(ctx context.Context, owner string, repo string, number int) ([]forge.Commit, error)
- func (_mock *MockPullRequestChanges) RequestDiff(ctx context.Context, owner string, repo string, number int, maxBytes int64) ([]byte, error)
- func (_mock *MockPullRequestChanges) RequestFiles(ctx context.Context, owner string, repo string, number int) ([]forge.ChangedFile, error)
- type MockPullRequestChanges_Expecter
- func (_e *MockPullRequestChanges_Expecter) RequestCommits(ctx any, owner any, repo any, number any) *MockPullRequestChanges_RequestCommits_Call
- func (_e *MockPullRequestChanges_Expecter) RequestDiff(ctx any, owner any, repo any, number any, maxBytes any) *MockPullRequestChanges_RequestDiff_Call
- func (_e *MockPullRequestChanges_Expecter) RequestFiles(ctx any, owner any, repo any, number any) *MockPullRequestChanges_RequestFiles_Call
- type MockPullRequestChanges_RequestCommits_Call
- func (_c *MockPullRequestChanges_RequestCommits_Call) Return(commits []forge.Commit, err error) *MockPullRequestChanges_RequestCommits_Call
- func (_c *MockPullRequestChanges_RequestCommits_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestChanges_RequestCommits_Call
- func (_c *MockPullRequestChanges_RequestCommits_Call) RunAndReturn(...) *MockPullRequestChanges_RequestCommits_Call
- type MockPullRequestChanges_RequestDiff_Call
- func (_c *MockPullRequestChanges_RequestDiff_Call) Return(bytes []byte, err error) *MockPullRequestChanges_RequestDiff_Call
- func (_c *MockPullRequestChanges_RequestDiff_Call) Run(...) *MockPullRequestChanges_RequestDiff_Call
- func (_c *MockPullRequestChanges_RequestDiff_Call) RunAndReturn(...) *MockPullRequestChanges_RequestDiff_Call
- type MockPullRequestChanges_RequestFiles_Call
- func (_c *MockPullRequestChanges_RequestFiles_Call) Return(changedFiles []forge.ChangedFile, err error) *MockPullRequestChanges_RequestFiles_Call
- func (_c *MockPullRequestChanges_RequestFiles_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestChanges_RequestFiles_Call
- func (_c *MockPullRequestChanges_RequestFiles_Call) RunAndReturn(...) *MockPullRequestChanges_RequestFiles_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 MockPullRequestMerger
- type MockPullRequestMerger_Expecter
- type MockPullRequestMerger_Merge_Call
- func (_c *MockPullRequestMerger_Merge_Call) Return(mergeOutcome forge.MergeOutcome, err error) *MockPullRequestMerger_Merge_Call
- func (_c *MockPullRequestMerger_Merge_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *MockPullRequestMerger_Merge_Call
- func (_c *MockPullRequestMerger_Merge_Call) RunAndReturn(...) *MockPullRequestMerger_Merge_Call
- type MockPullRequestReader
- func (_m *MockPullRequestReader) EXPECT() *MockPullRequestReader_Expecter
- func (_mock *MockPullRequestReader) GetRequest(ctx context.Context, owner string, repo string, number int) (forge.PullRequestRecord, error)
- func (_mock *MockPullRequestReader) ListUpdatedRequests(ctx context.Context, owner string, repo string, since time.Time) ([]forge.PullRequest, error)
- type MockPullRequestReader_Expecter
- type MockPullRequestReader_GetRequest_Call
- func (_c *MockPullRequestReader_GetRequest_Call) Return(pullRequestRecord forge.PullRequestRecord, err error) *MockPullRequestReader_GetRequest_Call
- func (_c *MockPullRequestReader_GetRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestReader_GetRequest_Call
- func (_c *MockPullRequestReader_GetRequest_Call) RunAndReturn(...) *MockPullRequestReader_GetRequest_Call
- type MockPullRequestReader_ListUpdatedRequests_Call
- func (_c *MockPullRequestReader_ListUpdatedRequests_Call) Return(pullRequests []forge.PullRequest, err error) *MockPullRequestReader_ListUpdatedRequests_Call
- func (_c *MockPullRequestReader_ListUpdatedRequests_Call) Run(run func(ctx context.Context, owner string, repo string, since time.Time)) *MockPullRequestReader_ListUpdatedRequests_Call
- func (_c *MockPullRequestReader_ListUpdatedRequests_Call) RunAndReturn(...) *MockPullRequestReader_ListUpdatedRequests_Call
- type MockPullRequestRebaser
- type MockPullRequestRebaser_Expecter
- type MockPullRequestRebaser_RebaseRequest_Call
- func (_c *MockPullRequestRebaser_RebaseRequest_Call) Return(rebaseOutcome forge.RebaseOutcome, err error) *MockPullRequestRebaser_RebaseRequest_Call
- func (_c *MockPullRequestRebaser_RebaseRequest_Call) Run(...) *MockPullRequestRebaser_RebaseRequest_Call
- func (_c *MockPullRequestRebaser_RebaseRequest_Call) RunAndReturn(...) *MockPullRequestRebaser_RebaseRequest_Call
- type MockPullRequestSnapshotLister
- type MockPullRequestSnapshotLister_Expecter
- type MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
- func (_c *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Return(pullRequestSnapshots []forge.PullRequestSnapshot, err error) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
- func (_c *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Run(run func(ctx context.Context, owner string, repo string, since time.Time)) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
- func (_c *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) RunAndReturn(...) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
- type MockRefResolver
- type MockRefResolver_Expecter
- type MockRefResolver_ResolveRef_Call
- func (_c *MockRefResolver_ResolveRef_Call) Return(s string, err error) *MockRefResolver_ResolveRef_Call
- func (_c *MockRefResolver_ResolveRef_Call) Run(run func(ctx context.Context, owner string, repo string, ref forge.Ref)) *MockRefResolver_ResolveRef_Call
- func (_c *MockRefResolver_ResolveRef_Call) RunAndReturn(...) *MockRefResolver_ResolveRef_Call
- type MockRelease
- func (_m *MockRelease) EXPECT() *MockRelease_Expecter
- func (_mock *MockRelease) GetAssets() []forge.ReleaseAsset
- func (_mock *MockRelease) GetBody() string
- func (_mock *MockRelease) GetDraft() bool
- func (_mock *MockRelease) GetName() string
- func (_mock *MockRelease) GetReleasedAt() time.Time
- func (_mock *MockRelease) GetTagName() string
- 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) GetReleasedAt() *MockRelease_GetReleasedAt_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_GetReleasedAt_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 MockRepositoryReader
- func (_m *MockRepositoryReader) EXPECT() *MockRepositoryReader_Expecter
- func (_mock *MockRepositoryReader) GetMergeMethods(ctx context.Context, owner string, repo string, branch string) (forge.MergeMethods, error)
- func (_mock *MockRepositoryReader) GetRepository(ctx context.Context, owner string, repo string) (forge.Repository, error)
- type MockRepositoryReader_Expecter
- type MockRepositoryReader_GetMergeMethods_Call
- func (_c *MockRepositoryReader_GetMergeMethods_Call) Return(mergeMethods forge.MergeMethods, err error) *MockRepositoryReader_GetMergeMethods_Call
- func (_c *MockRepositoryReader_GetMergeMethods_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *MockRepositoryReader_GetMergeMethods_Call
- func (_c *MockRepositoryReader_GetMergeMethods_Call) RunAndReturn(...) *MockRepositoryReader_GetMergeMethods_Call
- type MockRepositoryReader_GetRepository_Call
- func (_c *MockRepositoryReader_GetRepository_Call) Return(repository forge.Repository, err error) *MockRepositoryReader_GetRepository_Call
- func (_c *MockRepositoryReader_GetRepository_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockRepositoryReader_GetRepository_Call
- func (_c *MockRepositoryReader_GetRepository_Call) RunAndReturn(...) *MockRepositoryReader_GetRepository_Call
- 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 MockTagPushReader
- type MockTagPushReader_Expecter
- type MockTagPushReader_ListTagPushes_Call
- func (_c *MockTagPushReader_ListTagPushes_Call) Return(tagPushs []forge.TagPush, err error) *MockTagPushReader_ListTagPushes_Call
- func (_c *MockTagPushReader_ListTagPushes_Call) Run(run func(ctx context.Context, owner string, repo string, since time.Time)) *MockTagPushReader_ListTagPushes_Call
- func (_c *MockTagPushReader_ListTagPushes_Call) RunAndReturn(...) *MockTagPushReader_ListTagPushes_Call
- type MockTagReader
- type MockTagReader_Expecter
- type MockTagReader_ListTags_Call
- func (_c *MockTagReader_ListTags_Call) Return(tags []forge.Tag, err error) *MockTagReader_ListTags_Call
- func (_c *MockTagReader_ListTags_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockTagReader_ListTags_Call
- func (_c *MockTagReader_ListTags_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) ([]forge.Tag, error)) *MockTagReader_ListTags_Call
- type MockTreeReader
- func (_m *MockTreeReader) EXPECT() *MockTreeReader_Expecter
- func (_mock *MockTreeReader) ListFiles(ctx context.Context, owner string, repo string, ref string, dir string) ([]string, error)
- func (_mock *MockTreeReader) SameTree(ctx context.Context, owner string, repo string, refA string, refB string, ...) (bool, error)
- type MockTreeReader_Expecter
- type MockTreeReader_ListFiles_Call
- type MockTreeReader_SameTree_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 MockCommitCheckReader ¶ added in v0.36.0
MockCommitCheckReader is an autogenerated mock type for the CommitCheckReader type
func NewMockCommitCheckReader ¶ added in v0.36.0
func NewMockCommitCheckReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockCommitCheckReader
NewMockCommitCheckReader creates a new instance of MockCommitCheckReader. 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 (*MockCommitCheckReader) EXPECT ¶ added in v0.36.0
func (_m *MockCommitCheckReader) EXPECT() *MockCommitCheckReader_Expecter
type MockCommitCheckReader_Expecter ¶ added in v0.36.0
type MockCommitCheckReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCommitCheckReader_Expecter) ListCommitChecks ¶ added in v0.36.0
func (_e *MockCommitCheckReader_Expecter) ListCommitChecks(ctx any, owner any, repo any, sha any) *MockCommitCheckReader_ListCommitChecks_Call
ListCommitChecks is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- sha string
type MockCommitCheckReader_ListCommitChecks_Call ¶ added in v0.36.0
MockCommitCheckReader_ListCommitChecks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCommitChecks'
func (*MockCommitCheckReader_ListCommitChecks_Call) Return ¶ added in v0.36.0
func (_c *MockCommitCheckReader_ListCommitChecks_Call) Return(checks []forge.Check, err error) *MockCommitCheckReader_ListCommitChecks_Call
func (*MockCommitCheckReader_ListCommitChecks_Call) Run ¶ added in v0.36.0
func (_c *MockCommitCheckReader_ListCommitChecks_Call) Run(run func(ctx context.Context, owner string, repo string, sha string)) *MockCommitCheckReader_ListCommitChecks_Call
func (*MockCommitCheckReader_ListCommitChecks_Call) RunAndReturn ¶ added in v0.36.0
func (_c *MockCommitCheckReader_ListCommitChecks_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, sha string) ([]forge.Check, error)) *MockCommitCheckReader_ListCommitChecks_Call
type MockCommitComparer ¶ added in v0.35.0
MockCommitComparer is an autogenerated mock type for the CommitComparer type
func NewMockCommitComparer ¶ added in v0.35.0
func NewMockCommitComparer(t interface {
mock.TestingT
Cleanup(func())
}) *MockCommitComparer
NewMockCommitComparer creates a new instance of MockCommitComparer. 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 (*MockCommitComparer) CompareCommits ¶ added in v0.35.0
func (_mock *MockCommitComparer) CompareCommits(ctx context.Context, owner string, repo string, from string, to string) (forge.Comparison, error)
CompareCommits provides a mock function for the type MockCommitComparer
func (*MockCommitComparer) EXPECT ¶ added in v0.35.0
func (_m *MockCommitComparer) EXPECT() *MockCommitComparer_Expecter
type MockCommitComparer_CompareCommits_Call ¶ added in v0.35.0
MockCommitComparer_CompareCommits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareCommits'
func (*MockCommitComparer_CompareCommits_Call) Return ¶ added in v0.35.0
func (_c *MockCommitComparer_CompareCommits_Call) Return(comparison forge.Comparison, err error) *MockCommitComparer_CompareCommits_Call
func (*MockCommitComparer_CompareCommits_Call) Run ¶ added in v0.35.0
func (_c *MockCommitComparer_CompareCommits_Call) Run(run func(ctx context.Context, owner string, repo string, from string, to string)) *MockCommitComparer_CompareCommits_Call
func (*MockCommitComparer_CompareCommits_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockCommitComparer_CompareCommits_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, from string, to string) (forge.Comparison, error)) *MockCommitComparer_CompareCommits_Call
type MockCommitComparer_Expecter ¶ added in v0.35.0
type MockCommitComparer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCommitComparer_Expecter) CompareCommits ¶ added in v0.35.0
func (_e *MockCommitComparer_Expecter) CompareCommits(ctx any, owner any, repo any, from any, to any) *MockCommitComparer_CompareCommits_Call
CompareCommits is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- from string
- to string
type MockCommitStatusReader ¶ added in v0.35.0
MockCommitStatusReader is an autogenerated mock type for the CommitStatusReader type
func NewMockCommitStatusReader ¶ added in v0.35.0
func NewMockCommitStatusReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockCommitStatusReader
NewMockCommitStatusReader creates a new instance of MockCommitStatusReader. 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 (*MockCommitStatusReader) EXPECT ¶ added in v0.35.0
func (_m *MockCommitStatusReader) EXPECT() *MockCommitStatusReader_Expecter
func (*MockCommitStatusReader) GetCommitStatus ¶ added in v0.35.0
func (_mock *MockCommitStatusReader) GetCommitStatus(ctx context.Context, owner string, repo string, sha string) (forge.CommitStatus, error)
GetCommitStatus provides a mock function for the type MockCommitStatusReader
type MockCommitStatusReader_Expecter ¶ added in v0.35.0
type MockCommitStatusReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCommitStatusReader_Expecter) GetCommitStatus ¶ added in v0.35.0
func (_e *MockCommitStatusReader_Expecter) GetCommitStatus(ctx any, owner any, repo any, sha any) *MockCommitStatusReader_GetCommitStatus_Call
GetCommitStatus is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- sha string
type MockCommitStatusReader_GetCommitStatus_Call ¶ added in v0.35.0
MockCommitStatusReader_GetCommitStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommitStatus'
func (*MockCommitStatusReader_GetCommitStatus_Call) Return ¶ added in v0.35.0
func (_c *MockCommitStatusReader_GetCommitStatus_Call) Return(commitStatus forge.CommitStatus, err error) *MockCommitStatusReader_GetCommitStatus_Call
func (*MockCommitStatusReader_GetCommitStatus_Call) Run ¶ added in v0.35.0
func (_c *MockCommitStatusReader_GetCommitStatus_Call) Run(run func(ctx context.Context, owner string, repo string, sha string)) *MockCommitStatusReader_GetCommitStatus_Call
func (*MockCommitStatusReader_GetCommitStatus_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockCommitStatusReader_GetCommitStatus_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, sha string) (forge.CommitStatus, error)) *MockCommitStatusReader_GetCommitStatus_Call
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 MockCurrentUserReader ¶ added in v0.35.0
MockCurrentUserReader is an autogenerated mock type for the CurrentUserReader type
func NewMockCurrentUserReader ¶ added in v0.35.0
func NewMockCurrentUserReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockCurrentUserReader
NewMockCurrentUserReader creates a new instance of MockCurrentUserReader. 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 (*MockCurrentUserReader) CurrentUser ¶ added in v0.35.0
CurrentUser provides a mock function for the type MockCurrentUserReader
func (*MockCurrentUserReader) EXPECT ¶ added in v0.35.0
func (_m *MockCurrentUserReader) EXPECT() *MockCurrentUserReader_Expecter
type MockCurrentUserReader_CurrentUser_Call ¶ added in v0.35.0
MockCurrentUserReader_CurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentUser'
func (*MockCurrentUserReader_CurrentUser_Call) Return ¶ added in v0.35.0
func (_c *MockCurrentUserReader_CurrentUser_Call) Return(user forge.User, err error) *MockCurrentUserReader_CurrentUser_Call
func (*MockCurrentUserReader_CurrentUser_Call) Run ¶ added in v0.35.0
func (_c *MockCurrentUserReader_CurrentUser_Call) Run(run func(ctx context.Context)) *MockCurrentUserReader_CurrentUser_Call
func (*MockCurrentUserReader_CurrentUser_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockCurrentUserReader_CurrentUser_Call) RunAndReturn(run func(ctx context.Context) (forge.User, error)) *MockCurrentUserReader_CurrentUser_Call
type MockCurrentUserReader_Expecter ¶ added in v0.35.0
type MockCurrentUserReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCurrentUserReader_Expecter) CurrentUser ¶ added in v0.35.0
func (_e *MockCurrentUserReader_Expecter) CurrentUser(ctx any) *MockCurrentUserReader_CurrentUser_Call
CurrentUser is a helper method to define mock.On call
- ctx context.Context
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 MockMergeRuleReader ¶ added in v0.36.0
MockMergeRuleReader is an autogenerated mock type for the MergeRuleReader type
func NewMockMergeRuleReader ¶ added in v0.36.0
func NewMockMergeRuleReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockMergeRuleReader
NewMockMergeRuleReader creates a new instance of MockMergeRuleReader. 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 (*MockMergeRuleReader) EXPECT ¶ added in v0.36.0
func (_m *MockMergeRuleReader) EXPECT() *MockMergeRuleReader_Expecter
func (*MockMergeRuleReader) GetMergeRules ¶ added in v0.36.0
func (_mock *MockMergeRuleReader) GetMergeRules(ctx context.Context, owner string, repo string, branch string) (forge.MergeRules, error)
GetMergeRules provides a mock function for the type MockMergeRuleReader
type MockMergeRuleReader_Expecter ¶ added in v0.36.0
type MockMergeRuleReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMergeRuleReader_Expecter) GetMergeRules ¶ added in v0.36.0
func (_e *MockMergeRuleReader_Expecter) GetMergeRules(ctx any, owner any, repo any, branch any) *MockMergeRuleReader_GetMergeRules_Call
GetMergeRules is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
type MockMergeRuleReader_GetMergeRules_Call ¶ added in v0.36.0
MockMergeRuleReader_GetMergeRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMergeRules'
func (*MockMergeRuleReader_GetMergeRules_Call) Return ¶ added in v0.36.0
func (_c *MockMergeRuleReader_GetMergeRules_Call) Return(mergeRules forge.MergeRules, err error) *MockMergeRuleReader_GetMergeRules_Call
func (*MockMergeRuleReader_GetMergeRules_Call) Run ¶ added in v0.36.0
func (_c *MockMergeRuleReader_GetMergeRules_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *MockMergeRuleReader_GetMergeRules_Call
func (*MockMergeRuleReader_GetMergeRules_Call) RunAndReturn ¶ added in v0.36.0
func (_c *MockMergeRuleReader_GetMergeRules_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, branch string) (forge.MergeRules, error)) *MockMergeRuleReader_GetMergeRules_Call
type MockPinnedMerger ¶ added in v0.33.0
MockPinnedMerger is an autogenerated mock type for the PinnedMerger type
func NewMockPinnedMerger ¶ added in v0.33.0
func NewMockPinnedMerger(t interface {
mock.TestingT
Cleanup(func())
}) *MockPinnedMerger
NewMockPinnedMerger creates a new instance of MockPinnedMerger. 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 (*MockPinnedMerger) EXPECT ¶ added in v0.33.0
func (_m *MockPinnedMerger) EXPECT() *MockPinnedMerger_Expecter
func (*MockPinnedMerger) MergeAtHead ¶ added in v0.33.0
func (_mock *MockPinnedMerger) MergeAtHead(ctx context.Context, owner string, repo string, number int, headSHA string, opts forge.PinnedMergeOptions) error
MergeAtHead provides a mock function for the type MockPinnedMerger
type MockPinnedMerger_Expecter ¶ added in v0.33.0
type MockPinnedMerger_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPinnedMerger_Expecter) MergeAtHead ¶ added in v0.33.0
func (_e *MockPinnedMerger_Expecter) MergeAtHead(ctx any, owner any, repo any, number any, headSHA any, opts any) *MockPinnedMerger_MergeAtHead_Call
MergeAtHead is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- headSHA string
- opts forge.PinnedMergeOptions
type MockPinnedMerger_MergeAtHead_Call ¶ added in v0.33.0
MockPinnedMerger_MergeAtHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MergeAtHead'
func (*MockPinnedMerger_MergeAtHead_Call) Return ¶ added in v0.33.0
func (_c *MockPinnedMerger_MergeAtHead_Call) Return(err error) *MockPinnedMerger_MergeAtHead_Call
func (*MockPinnedMerger_MergeAtHead_Call) Run ¶ added in v0.33.0
func (_c *MockPinnedMerger_MergeAtHead_Call) Run(run func(ctx context.Context, owner string, repo string, number int, headSHA string, opts forge.PinnedMergeOptions)) *MockPinnedMerger_MergeAtHead_Call
func (*MockPinnedMerger_MergeAtHead_Call) RunAndReturn ¶ added in v0.33.0
func (_c *MockPinnedMerger_MergeAtHead_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, headSHA string, opts forge.PinnedMergeOptions) error) *MockPinnedMerger_MergeAtHead_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 MockPullRequestChanges ¶ added in v0.35.0
MockPullRequestChanges is an autogenerated mock type for the PullRequestChanges type
func NewMockPullRequestChanges ¶ added in v0.35.0
func NewMockPullRequestChanges(t interface {
mock.TestingT
Cleanup(func())
}) *MockPullRequestChanges
NewMockPullRequestChanges creates a new instance of MockPullRequestChanges. 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 (*MockPullRequestChanges) EXPECT ¶ added in v0.35.0
func (_m *MockPullRequestChanges) EXPECT() *MockPullRequestChanges_Expecter
func (*MockPullRequestChanges) RequestCommits ¶ added in v0.35.0
func (_mock *MockPullRequestChanges) RequestCommits(ctx context.Context, owner string, repo string, number int) ([]forge.Commit, error)
RequestCommits provides a mock function for the type MockPullRequestChanges
func (*MockPullRequestChanges) RequestDiff ¶ added in v0.35.0
func (_mock *MockPullRequestChanges) RequestDiff(ctx context.Context, owner string, repo string, number int, maxBytes int64) ([]byte, error)
RequestDiff provides a mock function for the type MockPullRequestChanges
func (*MockPullRequestChanges) RequestFiles ¶ added in v0.35.0
func (_mock *MockPullRequestChanges) RequestFiles(ctx context.Context, owner string, repo string, number int) ([]forge.ChangedFile, error)
RequestFiles provides a mock function for the type MockPullRequestChanges
type MockPullRequestChanges_Expecter ¶ added in v0.35.0
type MockPullRequestChanges_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPullRequestChanges_Expecter) RequestCommits ¶ added in v0.35.0
func (_e *MockPullRequestChanges_Expecter) RequestCommits(ctx any, owner any, repo any, number any) *MockPullRequestChanges_RequestCommits_Call
RequestCommits is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
func (*MockPullRequestChanges_Expecter) RequestDiff ¶ added in v0.35.0
func (_e *MockPullRequestChanges_Expecter) RequestDiff(ctx any, owner any, repo any, number any, maxBytes any) *MockPullRequestChanges_RequestDiff_Call
RequestDiff is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- maxBytes int64
func (*MockPullRequestChanges_Expecter) RequestFiles ¶ added in v0.35.0
func (_e *MockPullRequestChanges_Expecter) RequestFiles(ctx any, owner any, repo any, number any) *MockPullRequestChanges_RequestFiles_Call
RequestFiles is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
type MockPullRequestChanges_RequestCommits_Call ¶ added in v0.35.0
MockPullRequestChanges_RequestCommits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestCommits'
func (*MockPullRequestChanges_RequestCommits_Call) Return ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestCommits_Call) Return(commits []forge.Commit, err error) *MockPullRequestChanges_RequestCommits_Call
func (*MockPullRequestChanges_RequestCommits_Call) Run ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestCommits_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestChanges_RequestCommits_Call
func (*MockPullRequestChanges_RequestCommits_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestCommits_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) ([]forge.Commit, error)) *MockPullRequestChanges_RequestCommits_Call
type MockPullRequestChanges_RequestDiff_Call ¶ added in v0.35.0
MockPullRequestChanges_RequestDiff_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestDiff'
func (*MockPullRequestChanges_RequestDiff_Call) Return ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestDiff_Call) Return(bytes []byte, err error) *MockPullRequestChanges_RequestDiff_Call
func (*MockPullRequestChanges_RequestDiff_Call) Run ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestDiff_Call) Run(run func(ctx context.Context, owner string, repo string, number int, maxBytes int64)) *MockPullRequestChanges_RequestDiff_Call
func (*MockPullRequestChanges_RequestDiff_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestDiff_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, maxBytes int64) ([]byte, error)) *MockPullRequestChanges_RequestDiff_Call
type MockPullRequestChanges_RequestFiles_Call ¶ added in v0.35.0
MockPullRequestChanges_RequestFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestFiles'
func (*MockPullRequestChanges_RequestFiles_Call) Return ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestFiles_Call) Return(changedFiles []forge.ChangedFile, err error) *MockPullRequestChanges_RequestFiles_Call
func (*MockPullRequestChanges_RequestFiles_Call) Run ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestFiles_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestChanges_RequestFiles_Call
func (*MockPullRequestChanges_RequestFiles_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockPullRequestChanges_RequestFiles_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) ([]forge.ChangedFile, error)) *MockPullRequestChanges_RequestFiles_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 MockPullRequestMerger ¶ added in v0.29.0
MockPullRequestMerger is an autogenerated mock type for the PullRequestMerger type
func NewMockPullRequestMerger ¶ added in v0.29.0
func NewMockPullRequestMerger(t interface {
mock.TestingT
Cleanup(func())
}) *MockPullRequestMerger
NewMockPullRequestMerger creates a new instance of MockPullRequestMerger. 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 (*MockPullRequestMerger) EXPECT ¶ added in v0.29.0
func (_m *MockPullRequestMerger) EXPECT() *MockPullRequestMerger_Expecter
func (*MockPullRequestMerger) Merge ¶ added in v0.29.0
func (_mock *MockPullRequestMerger) Merge(ctx context.Context, owner string, repo string, number int, opts forge.MergeOptions) (forge.MergeOutcome, error)
Merge provides a mock function for the type MockPullRequestMerger
type MockPullRequestMerger_Expecter ¶ added in v0.29.0
type MockPullRequestMerger_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPullRequestMerger_Expecter) Merge ¶ added in v0.29.0
func (_e *MockPullRequestMerger_Expecter) Merge(ctx any, owner any, repo any, number any, opts any) *MockPullRequestMerger_Merge_Call
Merge is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- opts forge.MergeOptions
type MockPullRequestMerger_Merge_Call ¶ added in v0.29.0
MockPullRequestMerger_Merge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Merge'
func (*MockPullRequestMerger_Merge_Call) Return ¶ added in v0.29.0
func (_c *MockPullRequestMerger_Merge_Call) Return(mergeOutcome forge.MergeOutcome, err error) *MockPullRequestMerger_Merge_Call
func (*MockPullRequestMerger_Merge_Call) Run ¶ added in v0.29.0
func (_c *MockPullRequestMerger_Merge_Call) Run(run func(ctx context.Context, owner string, repo string, number int, opts forge.MergeOptions)) *MockPullRequestMerger_Merge_Call
func (*MockPullRequestMerger_Merge_Call) RunAndReturn ¶ added in v0.29.0
func (_c *MockPullRequestMerger_Merge_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, opts forge.MergeOptions) (forge.MergeOutcome, error)) *MockPullRequestMerger_Merge_Call
type MockPullRequestReader ¶ added in v0.35.0
MockPullRequestReader is an autogenerated mock type for the PullRequestReader type
func NewMockPullRequestReader ¶ added in v0.35.0
func NewMockPullRequestReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockPullRequestReader
NewMockPullRequestReader creates a new instance of MockPullRequestReader. 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 (*MockPullRequestReader) EXPECT ¶ added in v0.35.0
func (_m *MockPullRequestReader) EXPECT() *MockPullRequestReader_Expecter
func (*MockPullRequestReader) GetRequest ¶ added in v0.35.0
func (_mock *MockPullRequestReader) GetRequest(ctx context.Context, owner string, repo string, number int) (forge.PullRequestRecord, error)
GetRequest provides a mock function for the type MockPullRequestReader
func (*MockPullRequestReader) ListUpdatedRequests ¶ added in v0.35.0
func (_mock *MockPullRequestReader) ListUpdatedRequests(ctx context.Context, owner string, repo string, since time.Time) ([]forge.PullRequest, error)
ListUpdatedRequests provides a mock function for the type MockPullRequestReader
type MockPullRequestReader_Expecter ¶ added in v0.35.0
type MockPullRequestReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPullRequestReader_Expecter) GetRequest ¶ added in v0.35.0
func (_e *MockPullRequestReader_Expecter) GetRequest(ctx any, owner any, repo any, number any) *MockPullRequestReader_GetRequest_Call
GetRequest is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
func (*MockPullRequestReader_Expecter) ListUpdatedRequests ¶ added in v0.35.0
func (_e *MockPullRequestReader_Expecter) ListUpdatedRequests(ctx any, owner any, repo any, since any) *MockPullRequestReader_ListUpdatedRequests_Call
ListUpdatedRequests is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- since time.Time
type MockPullRequestReader_GetRequest_Call ¶ added in v0.35.0
MockPullRequestReader_GetRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRequest'
func (*MockPullRequestReader_GetRequest_Call) Return ¶ added in v0.35.0
func (_c *MockPullRequestReader_GetRequest_Call) Return(pullRequestRecord forge.PullRequestRecord, err error) *MockPullRequestReader_GetRequest_Call
func (*MockPullRequestReader_GetRequest_Call) Run ¶ added in v0.35.0
func (_c *MockPullRequestReader_GetRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockPullRequestReader_GetRequest_Call
func (*MockPullRequestReader_GetRequest_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockPullRequestReader_GetRequest_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) (forge.PullRequestRecord, error)) *MockPullRequestReader_GetRequest_Call
type MockPullRequestReader_ListUpdatedRequests_Call ¶ added in v0.35.0
MockPullRequestReader_ListUpdatedRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUpdatedRequests'
func (*MockPullRequestReader_ListUpdatedRequests_Call) Return ¶ added in v0.35.0
func (_c *MockPullRequestReader_ListUpdatedRequests_Call) Return(pullRequests []forge.PullRequest, err error) *MockPullRequestReader_ListUpdatedRequests_Call
func (*MockPullRequestReader_ListUpdatedRequests_Call) Run ¶ added in v0.35.0
func (_c *MockPullRequestReader_ListUpdatedRequests_Call) Run(run func(ctx context.Context, owner string, repo string, since time.Time)) *MockPullRequestReader_ListUpdatedRequests_Call
func (*MockPullRequestReader_ListUpdatedRequests_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockPullRequestReader_ListUpdatedRequests_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, since time.Time) ([]forge.PullRequest, error)) *MockPullRequestReader_ListUpdatedRequests_Call
type MockPullRequestRebaser ¶ added in v0.35.0
MockPullRequestRebaser is an autogenerated mock type for the PullRequestRebaser type
func NewMockPullRequestRebaser ¶ added in v0.35.0
func NewMockPullRequestRebaser(t interface {
mock.TestingT
Cleanup(func())
}) *MockPullRequestRebaser
NewMockPullRequestRebaser creates a new instance of MockPullRequestRebaser. 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 (*MockPullRequestRebaser) EXPECT ¶ added in v0.35.0
func (_m *MockPullRequestRebaser) EXPECT() *MockPullRequestRebaser_Expecter
func (*MockPullRequestRebaser) RebaseRequest ¶ added in v0.35.0
func (_mock *MockPullRequestRebaser) RebaseRequest(ctx context.Context, owner string, repo string, number int, headSHA string) (forge.RebaseOutcome, error)
RebaseRequest provides a mock function for the type MockPullRequestRebaser
type MockPullRequestRebaser_Expecter ¶ added in v0.35.0
type MockPullRequestRebaser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPullRequestRebaser_Expecter) RebaseRequest ¶ added in v0.35.0
func (_e *MockPullRequestRebaser_Expecter) RebaseRequest(ctx any, owner any, repo any, number any, headSHA any) *MockPullRequestRebaser_RebaseRequest_Call
RebaseRequest is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- headSHA string
type MockPullRequestRebaser_RebaseRequest_Call ¶ added in v0.35.0
MockPullRequestRebaser_RebaseRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RebaseRequest'
func (*MockPullRequestRebaser_RebaseRequest_Call) Return ¶ added in v0.35.0
func (_c *MockPullRequestRebaser_RebaseRequest_Call) Return(rebaseOutcome forge.RebaseOutcome, err error) *MockPullRequestRebaser_RebaseRequest_Call
func (*MockPullRequestRebaser_RebaseRequest_Call) Run ¶ added in v0.35.0
func (_c *MockPullRequestRebaser_RebaseRequest_Call) Run(run func(ctx context.Context, owner string, repo string, number int, headSHA string)) *MockPullRequestRebaser_RebaseRequest_Call
func (*MockPullRequestRebaser_RebaseRequest_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockPullRequestRebaser_RebaseRequest_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, headSHA string) (forge.RebaseOutcome, error)) *MockPullRequestRebaser_RebaseRequest_Call
type MockPullRequestSnapshotLister ¶ added in v0.36.0
MockPullRequestSnapshotLister is an autogenerated mock type for the PullRequestSnapshotLister type
func NewMockPullRequestSnapshotLister ¶ added in v0.36.0
func NewMockPullRequestSnapshotLister(t interface {
mock.TestingT
Cleanup(func())
}) *MockPullRequestSnapshotLister
NewMockPullRequestSnapshotLister creates a new instance of MockPullRequestSnapshotLister. 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 (*MockPullRequestSnapshotLister) EXPECT ¶ added in v0.36.0
func (_m *MockPullRequestSnapshotLister) EXPECT() *MockPullRequestSnapshotLister_Expecter
func (*MockPullRequestSnapshotLister) ListUpdatedSnapshots ¶ added in v0.36.0
func (_mock *MockPullRequestSnapshotLister) ListUpdatedSnapshots(ctx context.Context, owner string, repo string, since time.Time) ([]forge.PullRequestSnapshot, error)
ListUpdatedSnapshots provides a mock function for the type MockPullRequestSnapshotLister
type MockPullRequestSnapshotLister_Expecter ¶ added in v0.36.0
type MockPullRequestSnapshotLister_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPullRequestSnapshotLister_Expecter) ListUpdatedSnapshots ¶ added in v0.36.0
func (_e *MockPullRequestSnapshotLister_Expecter) ListUpdatedSnapshots(ctx any, owner any, repo any, since any) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
ListUpdatedSnapshots is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- since time.Time
type MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call ¶ added in v0.36.0
MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUpdatedSnapshots'
func (*MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Return ¶ added in v0.36.0
func (_c *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Return(pullRequestSnapshots []forge.PullRequestSnapshot, err error) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
func (*MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Run ¶ added in v0.36.0
func (_c *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Run(run func(ctx context.Context, owner string, repo string, since time.Time)) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
func (*MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) RunAndReturn ¶ added in v0.36.0
func (_c *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, since time.Time) ([]forge.PullRequestSnapshot, error)) *MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call
type MockRefResolver ¶ added in v0.36.0
MockRefResolver is an autogenerated mock type for the RefResolver type
func NewMockRefResolver ¶ added in v0.36.0
func NewMockRefResolver(t interface {
mock.TestingT
Cleanup(func())
}) *MockRefResolver
NewMockRefResolver creates a new instance of MockRefResolver. 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 (*MockRefResolver) EXPECT ¶ added in v0.36.0
func (_m *MockRefResolver) EXPECT() *MockRefResolver_Expecter
type MockRefResolver_Expecter ¶ added in v0.36.0
type MockRefResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRefResolver_Expecter) ResolveRef ¶ added in v0.36.0
func (_e *MockRefResolver_Expecter) ResolveRef(ctx any, owner any, repo any, ref any) *MockRefResolver_ResolveRef_Call
ResolveRef is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- ref forge.Ref
type MockRefResolver_ResolveRef_Call ¶ added in v0.36.0
MockRefResolver_ResolveRef_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveRef'
func (*MockRefResolver_ResolveRef_Call) Return ¶ added in v0.36.0
func (_c *MockRefResolver_ResolveRef_Call) Return(s string, err error) *MockRefResolver_ResolveRef_Call
func (*MockRefResolver_ResolveRef_Call) Run ¶ added in v0.36.0
func (_c *MockRefResolver_ResolveRef_Call) Run(run func(ctx context.Context, owner string, repo string, ref forge.Ref)) *MockRefResolver_ResolveRef_Call
func (*MockRefResolver_ResolveRef_Call) RunAndReturn ¶ added in v0.36.0
func (_c *MockRefResolver_ResolveRef_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, ref forge.Ref) (string, error)) *MockRefResolver_ResolveRef_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) GetReleasedAt ¶ added in v0.28.0
func (_mock *MockRelease) GetReleasedAt() time.Time
GetReleasedAt 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) GetReleasedAt ¶ added in v0.28.0
func (_e *MockRelease_Expecter) GetReleasedAt() *MockRelease_GetReleasedAt_Call
GetReleasedAt 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_GetReleasedAt_Call ¶ added in v0.28.0
MockRelease_GetReleasedAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleasedAt'
func (*MockRelease_GetReleasedAt_Call) Return ¶ added in v0.28.0
func (_c *MockRelease_GetReleasedAt_Call) Return(time1 time.Time) *MockRelease_GetReleasedAt_Call
func (*MockRelease_GetReleasedAt_Call) Run ¶ added in v0.28.0
func (_c *MockRelease_GetReleasedAt_Call) Run(run func()) *MockRelease_GetReleasedAt_Call
func (*MockRelease_GetReleasedAt_Call) RunAndReturn ¶ added in v0.28.0
func (_c *MockRelease_GetReleasedAt_Call) RunAndReturn(run func() time.Time) *MockRelease_GetReleasedAt_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 MockRepositoryReader ¶ added in v0.35.0
MockRepositoryReader is an autogenerated mock type for the RepositoryReader type
func NewMockRepositoryReader ¶ added in v0.35.0
func NewMockRepositoryReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockRepositoryReader
NewMockRepositoryReader creates a new instance of MockRepositoryReader. 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 (*MockRepositoryReader) EXPECT ¶ added in v0.35.0
func (_m *MockRepositoryReader) EXPECT() *MockRepositoryReader_Expecter
func (*MockRepositoryReader) GetMergeMethods ¶ added in v0.35.0
func (_mock *MockRepositoryReader) GetMergeMethods(ctx context.Context, owner string, repo string, branch string) (forge.MergeMethods, error)
GetMergeMethods provides a mock function for the type MockRepositoryReader
func (*MockRepositoryReader) GetRepository ¶ added in v0.35.0
func (_mock *MockRepositoryReader) GetRepository(ctx context.Context, owner string, repo string) (forge.Repository, error)
GetRepository provides a mock function for the type MockRepositoryReader
type MockRepositoryReader_Expecter ¶ added in v0.35.0
type MockRepositoryReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepositoryReader_Expecter) GetMergeMethods ¶ added in v0.35.0
func (_e *MockRepositoryReader_Expecter) GetMergeMethods(ctx any, owner any, repo any, branch any) *MockRepositoryReader_GetMergeMethods_Call
GetMergeMethods is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- branch string
func (*MockRepositoryReader_Expecter) GetRepository ¶ added in v0.35.0
func (_e *MockRepositoryReader_Expecter) GetRepository(ctx any, owner any, repo any) *MockRepositoryReader_GetRepository_Call
GetRepository is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
type MockRepositoryReader_GetMergeMethods_Call ¶ added in v0.35.0
MockRepositoryReader_GetMergeMethods_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMergeMethods'
func (*MockRepositoryReader_GetMergeMethods_Call) Return ¶ added in v0.35.0
func (_c *MockRepositoryReader_GetMergeMethods_Call) Return(mergeMethods forge.MergeMethods, err error) *MockRepositoryReader_GetMergeMethods_Call
func (*MockRepositoryReader_GetMergeMethods_Call) Run ¶ added in v0.35.0
func (_c *MockRepositoryReader_GetMergeMethods_Call) Run(run func(ctx context.Context, owner string, repo string, branch string)) *MockRepositoryReader_GetMergeMethods_Call
func (*MockRepositoryReader_GetMergeMethods_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockRepositoryReader_GetMergeMethods_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, branch string) (forge.MergeMethods, error)) *MockRepositoryReader_GetMergeMethods_Call
type MockRepositoryReader_GetRepository_Call ¶ added in v0.35.0
MockRepositoryReader_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*MockRepositoryReader_GetRepository_Call) Return ¶ added in v0.35.0
func (_c *MockRepositoryReader_GetRepository_Call) Return(repository forge.Repository, err error) *MockRepositoryReader_GetRepository_Call
func (*MockRepositoryReader_GetRepository_Call) Run ¶ added in v0.35.0
func (_c *MockRepositoryReader_GetRepository_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockRepositoryReader_GetRepository_Call
func (*MockRepositoryReader_GetRepository_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockRepositoryReader_GetRepository_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) (forge.Repository, error)) *MockRepositoryReader_GetRepository_Call
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 MockTagPushReader ¶ added in v0.35.0
MockTagPushReader is an autogenerated mock type for the TagPushReader type
func NewMockTagPushReader ¶ added in v0.35.0
func NewMockTagPushReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockTagPushReader
NewMockTagPushReader creates a new instance of MockTagPushReader. 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 (*MockTagPushReader) EXPECT ¶ added in v0.35.0
func (_m *MockTagPushReader) EXPECT() *MockTagPushReader_Expecter
type MockTagPushReader_Expecter ¶ added in v0.35.0
type MockTagPushReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTagPushReader_Expecter) ListTagPushes ¶ added in v0.35.0
func (_e *MockTagPushReader_Expecter) ListTagPushes(ctx any, owner any, repo any, since any) *MockTagPushReader_ListTagPushes_Call
ListTagPushes is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- since time.Time
type MockTagPushReader_ListTagPushes_Call ¶ added in v0.35.0
MockTagPushReader_ListTagPushes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTagPushes'
func (*MockTagPushReader_ListTagPushes_Call) Return ¶ added in v0.35.0
func (_c *MockTagPushReader_ListTagPushes_Call) Return(tagPushs []forge.TagPush, err error) *MockTagPushReader_ListTagPushes_Call
func (*MockTagPushReader_ListTagPushes_Call) Run ¶ added in v0.35.0
func (_c *MockTagPushReader_ListTagPushes_Call) Run(run func(ctx context.Context, owner string, repo string, since time.Time)) *MockTagPushReader_ListTagPushes_Call
func (*MockTagPushReader_ListTagPushes_Call) RunAndReturn ¶ added in v0.35.0
type MockTagReader ¶ added in v0.35.0
MockTagReader is an autogenerated mock type for the TagReader type
func NewMockTagReader ¶ added in v0.35.0
func NewMockTagReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockTagReader
NewMockTagReader creates a new instance of MockTagReader. 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 (*MockTagReader) EXPECT ¶ added in v0.35.0
func (_m *MockTagReader) EXPECT() *MockTagReader_Expecter
type MockTagReader_Expecter ¶ added in v0.35.0
type MockTagReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTagReader_Expecter) ListTags ¶ added in v0.35.0
func (_e *MockTagReader_Expecter) ListTags(ctx any, owner any, repo any) *MockTagReader_ListTags_Call
ListTags is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
type MockTagReader_ListTags_Call ¶ added in v0.35.0
MockTagReader_ListTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTags'
func (*MockTagReader_ListTags_Call) Return ¶ added in v0.35.0
func (_c *MockTagReader_ListTags_Call) Return(tags []forge.Tag, err error) *MockTagReader_ListTags_Call
func (*MockTagReader_ListTags_Call) Run ¶ added in v0.35.0
func (_c *MockTagReader_ListTags_Call) Run(run func(ctx context.Context, owner string, repo string)) *MockTagReader_ListTags_Call
func (*MockTagReader_ListTags_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockTagReader_ListTags_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string) ([]forge.Tag, error)) *MockTagReader_ListTags_Call
type MockTreeReader ¶ added in v0.35.0
MockTreeReader is an autogenerated mock type for the TreeReader type
func NewMockTreeReader ¶ added in v0.35.0
func NewMockTreeReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockTreeReader
NewMockTreeReader creates a new instance of MockTreeReader. 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 (*MockTreeReader) EXPECT ¶ added in v0.35.0
func (_m *MockTreeReader) EXPECT() *MockTreeReader_Expecter
type MockTreeReader_Expecter ¶ added in v0.35.0
type MockTreeReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTreeReader_Expecter) ListFiles ¶ added in v0.35.0
func (_e *MockTreeReader_Expecter) ListFiles(ctx any, owner any, repo any, ref any, dir any) *MockTreeReader_ListFiles_Call
ListFiles is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- ref string
- dir string
func (*MockTreeReader_Expecter) SameTree ¶ added in v0.35.0
func (_e *MockTreeReader_Expecter) SameTree(ctx any, owner any, repo any, refA any, refB any, path any) *MockTreeReader_SameTree_Call
SameTree is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- refA string
- refB string
- path string
type MockTreeReader_ListFiles_Call ¶ added in v0.35.0
MockTreeReader_ListFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFiles'
func (*MockTreeReader_ListFiles_Call) Return ¶ added in v0.35.0
func (_c *MockTreeReader_ListFiles_Call) Return(strings []string, err error) *MockTreeReader_ListFiles_Call
func (*MockTreeReader_ListFiles_Call) Run ¶ added in v0.35.0
func (_c *MockTreeReader_ListFiles_Call) Run(run func(ctx context.Context, owner string, repo string, ref string, dir string)) *MockTreeReader_ListFiles_Call
func (*MockTreeReader_ListFiles_Call) RunAndReturn ¶ added in v0.35.0
func (_c *MockTreeReader_ListFiles_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, ref string, dir string) ([]string, error)) *MockTreeReader_ListFiles_Call
type MockTreeReader_SameTree_Call ¶ added in v0.35.0
MockTreeReader_SameTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SameTree'
func (*MockTreeReader_SameTree_Call) Return ¶ added in v0.35.0
func (_c *MockTreeReader_SameTree_Call) Return(b bool, err error) *MockTreeReader_SameTree_Call
func (*MockTreeReader_SameTree_Call) Run ¶ added in v0.35.0
func (_c *MockTreeReader_SameTree_Call) Run(run func(ctx context.Context, owner string, repo string, refA string, refB string, path string)) *MockTreeReader_SameTree_Call
func (*MockTreeReader_SameTree_Call) RunAndReturn ¶ added in v0.35.0
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
Source Files
¶
- ChecksumProvider.go
- CommitCheckReader.go
- CommitComparer.go
- CommitStatusReader.go
- Config.go
- Contents.go
- CurrentUserReader.go
- DraftPublisher.go
- IssueCommenter.go
- IssueFiler.go
- Issues.go
- MergeRuleReader.go
- PinnedMerger.go
- Provider.go
- PullRequestChanges.go
- PullRequestCommenter.go
- PullRequestMerger.go
- PullRequestReader.go
- PullRequestRebaser.go
- PullRequestSnapshotLister.go
- RefResolver.go
- Release.go
- ReleaseAsset.go
- Repositories.go
- RepositoryCreator.go
- RepositoryReader.go
- SignatureProvider.go
- Sites.go
- Snippets.go
- TagPushReader.go
- TagReader.go
- TreeReader.go
- Wikis.go