Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChecksumProvider

type MockChecksumProvider struct {
	mock.Mock
}

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

type MockChecksumProvider_DownloadChecksumManifest_Call

type MockChecksumProvider_DownloadChecksumManifest_Call struct {
	*mock.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 (*MockChecksumProvider_DownloadChecksumManifest_Call) Run

func (*MockChecksumProvider_DownloadChecksumManifest_Call) RunAndReturn

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

type MockCommitCheckReader struct {
	mock.Mock
}

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 (*MockCommitCheckReader) ListCommitChecks added in v0.36.0

func (_mock *MockCommitCheckReader) ListCommitChecks(ctx context.Context, owner string, repo string, sha string) ([]forge.Check, error)

ListCommitChecks provides a mock function for the type MockCommitCheckReader

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

type MockCommitCheckReader_ListCommitChecks_Call struct {
	*mock.Call
}

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 (*MockCommitCheckReader_ListCommitChecks_Call) Run added in v0.36.0

func (*MockCommitCheckReader_ListCommitChecks_Call) RunAndReturn added in v0.36.0

type MockCommitComparer added in v0.35.0

type MockCommitComparer struct {
	mock.Mock
}

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

type MockCommitComparer_CompareCommits_Call added in v0.35.0

type MockCommitComparer_CompareCommits_Call struct {
	*mock.Call
}

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 (*MockCommitComparer_CompareCommits_Call) Run added in v0.35.0

func (*MockCommitComparer_CompareCommits_Call) RunAndReturn added in v0.35.0

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

type MockCommitStatusReader struct {
	mock.Mock
}

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 (*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

type MockCommitStatusReader_GetCommitStatus_Call struct {
	*mock.Call
}

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 (*MockCommitStatusReader_GetCommitStatus_Call) Run added in v0.35.0

func (*MockCommitStatusReader_GetCommitStatus_Call) RunAndReturn added in v0.35.0

type MockConfig

type MockConfig struct {
	mock.Mock
}

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

func (*MockConfig) Sub

func (_mock *MockConfig) Sub(key string) forge.Config

Sub provides a mock function for the type MockConfig

type MockConfig_Expecter

type MockConfig_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockConfig_Expecter) GetString

GetString is a helper method to define mock.On call

  • key string

func (*MockConfig_Expecter) Sub

Sub is a helper method to define mock.On call

  • key string

type MockConfig_GetString_Call

type MockConfig_GetString_Call struct {
	*mock.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 (*MockConfig_GetString_Call) Run

func (*MockConfig_GetString_Call) RunAndReturn

func (_c *MockConfig_GetString_Call) RunAndReturn(run func(key string) string) *MockConfig_GetString_Call

type MockConfig_Sub_Call

type MockConfig_Sub_Call struct {
	*mock.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 (*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

type MockContents struct {
	mock.Mock
}

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

func (*MockContents) GetFile added in v0.4.0

func (_mock *MockContents) GetFile(ctx context.Context, owner string, repo string, path string, ref string, maxBytes int64) ([]byte, error)

GetFile provides a mock function for the type MockContents

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

type MockContents_GetFile_Call struct {
	*mock.Call
}

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 (*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

func (_c *MockContents_GetFile_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, path string, ref string, maxBytes int64) ([]byte, error)) *MockContents_GetFile_Call

type MockCurrentUserReader added in v0.35.0

type MockCurrentUserReader struct {
	mock.Mock
}

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

func (_mock *MockCurrentUserReader) CurrentUser(ctx context.Context) (forge.User, error)

CurrentUser provides a mock function for the type MockCurrentUserReader

func (*MockCurrentUserReader) EXPECT added in v0.35.0

type MockCurrentUserReader_CurrentUser_Call added in v0.35.0

type MockCurrentUserReader_CurrentUser_Call struct {
	*mock.Call
}

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 (*MockCurrentUserReader_CurrentUser_Call) Run added in v0.35.0

func (*MockCurrentUserReader_CurrentUser_Call) RunAndReturn added in v0.35.0

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

CurrentUser is a helper method to define mock.On call

  • ctx context.Context

type MockDraftPublisher added in v0.27.0

type MockDraftPublisher struct {
	mock.Mock
}

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 (*MockDraftPublisher) PublishRelease added in v0.27.0

func (_mock *MockDraftPublisher) PublishRelease(ctx context.Context, owner string, repo string, tagName string) (forge.Release, error)

PublishRelease provides a mock function for the type MockDraftPublisher

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

type MockDraftPublisher_PublishRelease_Call struct {
	*mock.Call
}

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 (*MockDraftPublisher_PublishRelease_Call) Run added in v0.27.0

func (*MockDraftPublisher_PublishRelease_Call) RunAndReturn added in v0.27.0

type MockIssueCommenter added in v0.26.0

type MockIssueCommenter struct {
	mock.Mock
}

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

type MockIssueCommenter_CreateIssueComment_Call added in v0.26.0

type MockIssueCommenter_CreateIssueComment_Call struct {
	*mock.Call
}

MockIssueCommenter_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'

func (*MockIssueCommenter_CreateIssueComment_Call) Return added in v0.26.0

func (*MockIssueCommenter_CreateIssueComment_Call) Run added in v0.26.0

func (*MockIssueCommenter_CreateIssueComment_Call) RunAndReturn added in v0.26.0

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

type MockIssueFiler struct {
	mock.Mock
}

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

type MockIssueFiler_CreateIssue_Call added in v0.5.0

type MockIssueFiler_CreateIssue_Call struct {
	*mock.Call
}

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 (*MockIssueFiler_CreateIssue_Call) Run added in v0.5.0

func (*MockIssueFiler_CreateIssue_Call) RunAndReturn added in v0.5.0

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

type MockIssues struct {
	mock.Mock
}

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

type MockIssues_GetIssue_Call struct {
	*mock.Call
}

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 (*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

type MockIssues_ListComments_Call struct {
	*mock.Call
}

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 (*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

type MockIssues_SearchIssues_Call struct {
	*mock.Call
}

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 (*MockIssues_SearchIssues_Call) Run added in v0.5.0

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

type MockMergeRuleReader struct {
	mock.Mock
}

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 (*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

type MockMergeRuleReader_GetMergeRules_Call struct {
	*mock.Call
}

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 (*MockMergeRuleReader_GetMergeRules_Call) Run added in v0.36.0

func (*MockMergeRuleReader_GetMergeRules_Call) RunAndReturn added in v0.36.0

type MockPinnedMerger added in v0.33.0

type MockPinnedMerger struct {
	mock.Mock
}

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 (*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

type MockPinnedMerger_MergeAtHead_Call struct {
	*mock.Call
}

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 (*MockPinnedMerger_MergeAtHead_Call) Run added in v0.33.0

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

type MockProvider struct {
	mock.Mock
}

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

func (*MockProvider) GetReleaseByTag

func (_mock *MockProvider) GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (forge.Release, error)

GetReleaseByTag provides a mock function for the type MockProvider

func (*MockProvider) ListReleases

func (_mock *MockProvider) ListReleases(ctx context.Context, owner string, repo string, limit int) ([]forge.Release, error)

ListReleases provides a mock function for the type MockProvider

type MockProvider_DownloadReleaseAsset_Call

type MockProvider_DownloadReleaseAsset_Call struct {
	*mock.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 (*MockProvider_DownloadReleaseAsset_Call) Run

func (*MockProvider_DownloadReleaseAsset_Call) RunAndReturn

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

type MockProvider_GetLatestRelease_Call struct {
	*mock.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 (*MockProvider_GetLatestRelease_Call) Run

func (*MockProvider_GetLatestRelease_Call) RunAndReturn

type MockProvider_GetReleaseByTag_Call

type MockProvider_GetReleaseByTag_Call struct {
	*mock.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 (*MockProvider_GetReleaseByTag_Call) Run

func (*MockProvider_GetReleaseByTag_Call) RunAndReturn

type MockProvider_ListReleases_Call

type MockProvider_ListReleases_Call struct {
	*mock.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 (*MockProvider_ListReleases_Call) Run

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

type MockPullRequestChanges struct {
	mock.Mock
}

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 (*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

type MockPullRequestChanges_RequestCommits_Call struct {
	*mock.Call
}

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 (*MockPullRequestChanges_RequestCommits_Call) Run added in v0.35.0

func (*MockPullRequestChanges_RequestCommits_Call) RunAndReturn added in v0.35.0

type MockPullRequestChanges_RequestDiff_Call added in v0.35.0

type MockPullRequestChanges_RequestDiff_Call struct {
	*mock.Call
}

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 (*MockPullRequestChanges_RequestDiff_Call) Run added in v0.35.0

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

type MockPullRequestChanges_RequestFiles_Call struct {
	*mock.Call
}

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 (*MockPullRequestChanges_RequestFiles_Call) Run added in v0.35.0

func (*MockPullRequestChanges_RequestFiles_Call) RunAndReturn added in v0.35.0

type MockPullRequestCommenter added in v0.26.0

type MockPullRequestCommenter struct {
	mock.Mock
}

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 (*MockPullRequestCommenter) ListRequestComments added in v0.26.0

func (_mock *MockPullRequestCommenter) ListRequestComments(ctx context.Context, owner string, repo string, number int) ([]forge.Comment, error)

ListRequestComments provides a mock function for the type MockPullRequestCommenter

type MockPullRequestCommenter_Comment_Call added in v0.26.0

type MockPullRequestCommenter_Comment_Call struct {
	*mock.Call
}

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 (*MockPullRequestCommenter_Comment_Call) Run added in v0.26.0

func (*MockPullRequestCommenter_Comment_Call) RunAndReturn added in v0.26.0

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

type MockPullRequestCommenter_ListRequestComments_Call struct {
	*mock.Call
}

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 (*MockPullRequestCommenter_ListRequestComments_Call) Run added in v0.26.0

func (*MockPullRequestCommenter_ListRequestComments_Call) RunAndReturn added in v0.26.0

type MockPullRequestMerger added in v0.29.0

type MockPullRequestMerger struct {
	mock.Mock
}

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 (*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

type MockPullRequestMerger_Merge_Call struct {
	*mock.Call
}

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 (*MockPullRequestMerger_Merge_Call) Run added in v0.29.0

func (*MockPullRequestMerger_Merge_Call) RunAndReturn added in v0.29.0

type MockPullRequestReader added in v0.35.0

type MockPullRequestReader struct {
	mock.Mock
}

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 (*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

type MockPullRequestReader_GetRequest_Call struct {
	*mock.Call
}

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 (*MockPullRequestReader_GetRequest_Call) Run added in v0.35.0

func (*MockPullRequestReader_GetRequest_Call) RunAndReturn added in v0.35.0

type MockPullRequestReader_ListUpdatedRequests_Call added in v0.35.0

type MockPullRequestReader_ListUpdatedRequests_Call struct {
	*mock.Call
}

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 (*MockPullRequestReader_ListUpdatedRequests_Call) Run added in v0.35.0

func (*MockPullRequestReader_ListUpdatedRequests_Call) RunAndReturn added in v0.35.0

type MockPullRequestRebaser added in v0.35.0

type MockPullRequestRebaser struct {
	mock.Mock
}

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 (*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

type MockPullRequestRebaser_RebaseRequest_Call struct {
	*mock.Call
}

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 (*MockPullRequestRebaser_RebaseRequest_Call) Run added in v0.35.0

func (*MockPullRequestRebaser_RebaseRequest_Call) RunAndReturn added in v0.35.0

type MockPullRequestSnapshotLister added in v0.36.0

type MockPullRequestSnapshotLister struct {
	mock.Mock
}

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 (*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

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

type MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call struct {
	*mock.Call
}

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 (*MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) Run added in v0.36.0

func (*MockPullRequestSnapshotLister_ListUpdatedSnapshots_Call) RunAndReturn added in v0.36.0

type MockRefResolver added in v0.36.0

type MockRefResolver struct {
	mock.Mock
}

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 (*MockRefResolver) ResolveRef added in v0.36.0

func (_mock *MockRefResolver) ResolveRef(ctx context.Context, owner string, repo string, ref forge.Ref) (string, error)

ResolveRef provides a mock function for the type MockRefResolver

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

type MockRefResolver_ResolveRef_Call struct {
	*mock.Call
}

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 (*MockRefResolver_ResolveRef_Call) Run added in v0.36.0

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

type MockRelease struct {
	mock.Mock
}

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

type MockReleaseAsset struct {
	mock.Mock
}

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 (*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

GetBrowserDownloadURL is a helper method to define mock.On call

func (*MockReleaseAsset_Expecter) GetID

GetID is a helper method to define mock.On call

func (*MockReleaseAsset_Expecter) GetName

GetName is a helper method to define mock.On call

type MockReleaseAsset_GetBrowserDownloadURL_Call

type MockReleaseAsset_GetBrowserDownloadURL_Call struct {
	*mock.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 (*MockReleaseAsset_GetBrowserDownloadURL_Call) Run

func (*MockReleaseAsset_GetBrowserDownloadURL_Call) RunAndReturn

type MockReleaseAsset_GetID_Call

type MockReleaseAsset_GetID_Call struct {
	*mock.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 (*MockReleaseAsset_GetID_Call) Run

func (*MockReleaseAsset_GetID_Call) RunAndReturn

func (_c *MockReleaseAsset_GetID_Call) RunAndReturn(run func() int64) *MockReleaseAsset_GetID_Call

type MockReleaseAsset_GetName_Call

type MockReleaseAsset_GetName_Call struct {
	*mock.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 (*MockReleaseAsset_GetName_Call) Run

func (*MockReleaseAsset_GetName_Call) RunAndReturn

type MockRelease_Expecter

type MockRelease_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockRelease_Expecter) GetAssets

GetAssets is a helper method to define mock.On call

func (*MockRelease_Expecter) GetBody

GetBody is a helper method to define mock.On call

func (*MockRelease_Expecter) GetDraft

GetDraft is a helper method to define mock.On call

func (*MockRelease_Expecter) GetName

GetName is a helper method to define mock.On call

func (*MockRelease_Expecter) GetReleasedAt added in v0.28.0

GetReleasedAt is a helper method to define mock.On call

func (*MockRelease_Expecter) GetTagName

GetTagName is a helper method to define mock.On call

type MockRelease_GetAssets_Call

type MockRelease_GetAssets_Call struct {
	*mock.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 (*MockRelease_GetAssets_Call) Run

func (*MockRelease_GetAssets_Call) RunAndReturn

type MockRelease_GetBody_Call

type MockRelease_GetBody_Call struct {
	*mock.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 (*MockRelease_GetBody_Call) Run

func (*MockRelease_GetBody_Call) RunAndReturn

func (_c *MockRelease_GetBody_Call) RunAndReturn(run func() string) *MockRelease_GetBody_Call

type MockRelease_GetDraft_Call

type MockRelease_GetDraft_Call struct {
	*mock.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 (*MockRelease_GetDraft_Call) Run

func (*MockRelease_GetDraft_Call) RunAndReturn

func (_c *MockRelease_GetDraft_Call) RunAndReturn(run func() bool) *MockRelease_GetDraft_Call

type MockRelease_GetName_Call

type MockRelease_GetName_Call struct {
	*mock.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 (*MockRelease_GetName_Call) Run

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

type MockRelease_GetReleasedAt_Call struct {
	*mock.Call
}

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 (*MockRelease_GetReleasedAt_Call) Run added in v0.28.0

func (*MockRelease_GetReleasedAt_Call) RunAndReturn added in v0.28.0

type MockRelease_GetTagName_Call

type MockRelease_GetTagName_Call struct {
	*mock.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 (*MockRelease_GetTagName_Call) Run

func (*MockRelease_GetTagName_Call) RunAndReturn

func (_c *MockRelease_GetTagName_Call) RunAndReturn(run func() string) *MockRelease_GetTagName_Call

type MockRepositories added in v0.4.0

type MockRepositories struct {
	mock.Mock
}

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 (*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

type MockRepositories_ListRepositories_Call struct {
	*mock.Call
}

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 (*MockRepositories_ListRepositories_Call) Run added in v0.4.0

func (*MockRepositories_ListRepositories_Call) RunAndReturn added in v0.4.0

type MockRepositoryCreator added in v0.26.0

type MockRepositoryCreator struct {
	mock.Mock
}

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

type MockRepositoryCreator_CreateRepository_Call added in v0.26.0

type MockRepositoryCreator_CreateRepository_Call struct {
	*mock.Call
}

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 (*MockRepositoryCreator_CreateRepository_Call) Run added in v0.26.0

func (*MockRepositoryCreator_CreateRepository_Call) RunAndReturn added in v0.26.0

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

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

type MockRepositoryReader struct {
	mock.Mock
}

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 (*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

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

type MockRepositoryReader_GetMergeMethods_Call struct {
	*mock.Call
}

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 (*MockRepositoryReader_GetMergeMethods_Call) Run added in v0.35.0

func (*MockRepositoryReader_GetMergeMethods_Call) RunAndReturn added in v0.35.0

type MockRepositoryReader_GetRepository_Call added in v0.35.0

type MockRepositoryReader_GetRepository_Call struct {
	*mock.Call
}

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 (*MockRepositoryReader_GetRepository_Call) Run added in v0.35.0

func (*MockRepositoryReader_GetRepository_Call) RunAndReturn added in v0.35.0

type MockSignatureProvider

type MockSignatureProvider struct {
	mock.Mock
}

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

type MockSignatureProvider_DownloadSignature_Call

type MockSignatureProvider_DownloadSignature_Call struct {
	*mock.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 (*MockSignatureProvider_DownloadSignature_Call) Run

func (*MockSignatureProvider_DownloadSignature_Call) RunAndReturn

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

type MockSites struct {
	mock.Mock
}

MockSites is an autogenerated mock type for the Sites type

func NewMockSites added in v0.4.0

func NewMockSites(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSites

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

func (*MockSites) GetSite added in v0.4.0

func (_mock *MockSites) GetSite(ctx context.Context, owner string, repo string) (forge.Site, error)

GetSite provides a mock function for the type MockSites

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

type MockSites_GetSite_Call struct {
	*mock.Call
}

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 (*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

type MockSnippets struct {
	mock.Mock
}

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

type MockSnippets_CreateSnippet_Call struct {
	*mock.Call
}

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 (*MockSnippets_CreateSnippet_Call) Run added in v0.11.0

func (*MockSnippets_CreateSnippet_Call) RunAndReturn added in v0.11.0

type MockSnippets_DeleteSnippet_Call added in v0.11.0

type MockSnippets_DeleteSnippet_Call struct {
	*mock.Call
}

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 (*MockSnippets_DeleteSnippet_Call) Run added in v0.11.0

func (*MockSnippets_DeleteSnippet_Call) RunAndReturn added in v0.11.0

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

type MockSnippets_GetSnippet_Call struct {
	*mock.Call
}

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 (*MockSnippets_GetSnippet_Call) Run added in v0.11.0

func (*MockSnippets_GetSnippet_Call) RunAndReturn added in v0.11.0

type MockSnippets_ListSnippets_Call added in v0.11.0

type MockSnippets_ListSnippets_Call struct {
	*mock.Call
}

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 (*MockSnippets_ListSnippets_Call) Run added in v0.11.0

func (*MockSnippets_ListSnippets_Call) RunAndReturn added in v0.11.0

type MockTagPushReader added in v0.35.0

type MockTagPushReader struct {
	mock.Mock
}

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 (*MockTagPushReader) ListTagPushes added in v0.35.0

func (_mock *MockTagPushReader) ListTagPushes(ctx context.Context, owner string, repo string, since time.Time) ([]forge.TagPush, error)

ListTagPushes provides a mock function for the type MockTagPushReader

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

type MockTagPushReader_ListTagPushes_Call struct {
	*mock.Call
}

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 (*MockTagPushReader_ListTagPushes_Call) Run added in v0.35.0

func (*MockTagPushReader_ListTagPushes_Call) RunAndReturn added in v0.35.0

type MockTagReader added in v0.35.0

type MockTagReader struct {
	mock.Mock
}

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

func (*MockTagReader) ListTags added in v0.35.0

func (_mock *MockTagReader) ListTags(ctx context.Context, owner string, repo string) ([]forge.Tag, error)

ListTags provides a mock function for the type MockTagReader

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

type MockTagReader_ListTags_Call struct {
	*mock.Call
}

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 (*MockTagReader_ListTags_Call) Run added in v0.35.0

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

type MockTreeReader struct {
	mock.Mock
}

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 (*MockTreeReader) ListFiles added in v0.35.0

func (_mock *MockTreeReader) ListFiles(ctx context.Context, owner string, repo string, ref string, dir string) ([]string, error)

ListFiles provides a mock function for the type MockTreeReader

func (*MockTreeReader) SameTree added in v0.35.0

func (_mock *MockTreeReader) SameTree(ctx context.Context, owner string, repo string, refA string, refB string, path string) (bool, error)

SameTree provides a mock function for the type MockTreeReader

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

type MockTreeReader_ListFiles_Call struct {
	*mock.Call
}

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 (*MockTreeReader_ListFiles_Call) Run added in v0.35.0

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

type MockTreeReader_SameTree_Call struct {
	*mock.Call
}

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 (*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

func (_c *MockTreeReader_SameTree_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, refA string, refB string, path string) (bool, error)) *MockTreeReader_SameTree_Call

type MockWikis added in v0.24.0

type MockWikis struct {
	mock.Mock
}

MockWikis is an autogenerated mock type for the Wikis type

func NewMockWikis added in v0.24.0

func NewMockWikis(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWikis

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

func (*MockWikis) ListWikiPages added in v0.24.0

func (_mock *MockWikis) ListWikiPages(ctx context.Context, owner string, repo string) ([]forge.WikiPage, error)

ListWikiPages provides a mock function for the type MockWikis

func (*MockWikis) UpdateWikiPage added in v0.24.0

func (_mock *MockWikis) UpdateWikiPage(ctx context.Context, owner string, repo string, page forge.WikiPage, message string) error

UpdateWikiPage provides a mock function for the type MockWikis

type MockWikis_CreateWikiPage_Call added in v0.24.0

type MockWikis_CreateWikiPage_Call struct {
	*mock.Call
}

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 (*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

type MockWikis_GetWikiPage_Call struct {
	*mock.Call
}

MockWikis_GetWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWikiPage'

func (*MockWikis_GetWikiPage_Call) Return added in v0.24.0

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

func (_c *MockWikis_GetWikiPage_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, path string, maxBytes int64) (forge.WikiPage, error)) *MockWikis_GetWikiPage_Call

type MockWikis_ListWikiPages_Call added in v0.24.0

type MockWikis_ListWikiPages_Call struct {
	*mock.Call
}

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 (*MockWikis_ListWikiPages_Call) Run added in v0.24.0

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

type MockWikis_UpdateWikiPage_Call struct {
	*mock.Call
}

MockWikis_UpdateWikiPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWikiPage'

func (*MockWikis_UpdateWikiPage_Call) Return added in v0.24.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL