Documentation
¶
Index ¶
- type MockAssetPublisher
- func (_mock *MockAssetPublisher) AddReleaseAssetLocation(ctx context.Context, owner string, repo string, tagName string, ...) error
- func (_mock *MockAssetPublisher) CreateReleaseWithAssets(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft, ...) (forge.Release, error)
- func (_m *MockAssetPublisher) EXPECT() *MockAssetPublisher_Expecter
- type MockAssetPublisher_AddReleaseAssetLocation_Call
- func (_c *MockAssetPublisher_AddReleaseAssetLocation_Call) Return(err error) *MockAssetPublisher_AddReleaseAssetLocation_Call
- func (_c *MockAssetPublisher_AddReleaseAssetLocation_Call) Run(run func(ctx context.Context, owner string, repo string, tagName string, ...)) *MockAssetPublisher_AddReleaseAssetLocation_Call
- func (_c *MockAssetPublisher_AddReleaseAssetLocation_Call) RunAndReturn(...) *MockAssetPublisher_AddReleaseAssetLocation_Call
- type MockAssetPublisher_CreateReleaseWithAssets_Call
- func (_c *MockAssetPublisher_CreateReleaseWithAssets_Call) Return(release forge.Release, err error) *MockAssetPublisher_CreateReleaseWithAssets_Call
- func (_c *MockAssetPublisher_CreateReleaseWithAssets_Call) Run(...) *MockAssetPublisher_CreateReleaseWithAssets_Call
- func (_c *MockAssetPublisher_CreateReleaseWithAssets_Call) RunAndReturn(...) *MockAssetPublisher_CreateReleaseWithAssets_Call
- type MockAssetPublisher_Expecter
- func (_e *MockAssetPublisher_Expecter) AddReleaseAssetLocation(ctx any, owner any, repo any, tagName any, asset any) *MockAssetPublisher_AddReleaseAssetLocation_Call
- func (_e *MockAssetPublisher_Expecter) CreateReleaseWithAssets(ctx any, owner any, repo any, draft any, assets any) *MockAssetPublisher_CreateReleaseWithAssets_Call
- type MockPublisher
- type MockPublisher_CreateRelease_Call
- func (_c *MockPublisher_CreateRelease_Call) Return(release forge.Release, err error) *MockPublisher_CreateRelease_Call
- func (_c *MockPublisher_CreateRelease_Call) Run(...) *MockPublisher_CreateRelease_Call
- func (_c *MockPublisher_CreateRelease_Call) RunAndReturn(...) *MockPublisher_CreateRelease_Call
- type MockPublisher_Expecter
- type MockResolver
- func (_m *MockResolver) EXPECT() *MockResolver_Expecter
- func (_mock *MockResolver) FindLastMerged(ctx context.Context, owner string, repo string, sourceBranch string) (forge.PullRequest, error)
- func (_mock *MockResolver) ResolveMergedCommit(ctx context.Context, owner string, repo string, number int) (string, error)
- type MockResolver_Expecter
- type MockResolver_FindLastMerged_Call
- func (_c *MockResolver_FindLastMerged_Call) Return(pullRequest forge.PullRequest, err error) *MockResolver_FindLastMerged_Call
- func (_c *MockResolver_FindLastMerged_Call) Run(run func(ctx context.Context, owner string, repo string, sourceBranch string)) *MockResolver_FindLastMerged_Call
- func (_c *MockResolver_FindLastMerged_Call) RunAndReturn(...) *MockResolver_FindLastMerged_Call
- type MockResolver_ResolveMergedCommit_Call
- func (_c *MockResolver_ResolveMergedCommit_Call) Return(s string, err error) *MockResolver_ResolveMergedCommit_Call
- func (_c *MockResolver_ResolveMergedCommit_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockResolver_ResolveMergedCommit_Call
- func (_c *MockResolver_ResolveMergedCommit_Call) RunAndReturn(...) *MockResolver_ResolveMergedCommit_Call
- type MockTagger
- func (_mock *MockTagger) Contains(ctx context.Context, req tree.ContainsRequest) (bool, error)
- func (_m *MockTagger) EXPECT() *MockTagger_Expecter
- func (_mock *MockTagger) FileAt(ctx context.Context, req tree.FileRequest) ([]byte, error)
- func (_mock *MockTagger) ResolveTag(ctx context.Context, req tree.TagLookup) (string, error)
- func (_mock *MockTagger) Tag(ctx context.Context, spec tree.TagSpec) (tree.TagResult, error)
- type MockTagger_Contains_Call
- func (_c *MockTagger_Contains_Call) Return(b bool, err error) *MockTagger_Contains_Call
- func (_c *MockTagger_Contains_Call) Run(run func(ctx context.Context, req tree.ContainsRequest)) *MockTagger_Contains_Call
- func (_c *MockTagger_Contains_Call) RunAndReturn(run func(ctx context.Context, req tree.ContainsRequest) (bool, error)) *MockTagger_Contains_Call
- type MockTagger_Expecter
- func (_e *MockTagger_Expecter) Contains(ctx any, req any) *MockTagger_Contains_Call
- func (_e *MockTagger_Expecter) FileAt(ctx any, req any) *MockTagger_FileAt_Call
- func (_e *MockTagger_Expecter) ResolveTag(ctx any, req any) *MockTagger_ResolveTag_Call
- func (_e *MockTagger_Expecter) Tag(ctx any, spec any) *MockTagger_Tag_Call
- type MockTagger_FileAt_Call
- func (_c *MockTagger_FileAt_Call) Return(bytes []byte, err error) *MockTagger_FileAt_Call
- func (_c *MockTagger_FileAt_Call) Run(run func(ctx context.Context, req tree.FileRequest)) *MockTagger_FileAt_Call
- func (_c *MockTagger_FileAt_Call) RunAndReturn(run func(ctx context.Context, req tree.FileRequest) ([]byte, error)) *MockTagger_FileAt_Call
- type MockTagger_ResolveTag_Call
- func (_c *MockTagger_ResolveTag_Call) Return(s string, err error) *MockTagger_ResolveTag_Call
- func (_c *MockTagger_ResolveTag_Call) Run(run func(ctx context.Context, req tree.TagLookup)) *MockTagger_ResolveTag_Call
- func (_c *MockTagger_ResolveTag_Call) RunAndReturn(run func(ctx context.Context, req tree.TagLookup) (string, error)) *MockTagger_ResolveTag_Call
- type MockTagger_Tag_Call
- func (_c *MockTagger_Tag_Call) Return(tagResult tree.TagResult, err error) *MockTagger_Tag_Call
- func (_c *MockTagger_Tag_Call) Run(run func(ctx context.Context, spec tree.TagSpec)) *MockTagger_Tag_Call
- func (_c *MockTagger_Tag_Call) RunAndReturn(run func(ctx context.Context, spec tree.TagSpec) (tree.TagResult, error)) *MockTagger_Tag_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAssetPublisher ¶
MockAssetPublisher is an autogenerated mock type for the AssetPublisher type
func NewMockAssetPublisher ¶
func NewMockAssetPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *MockAssetPublisher
NewMockAssetPublisher creates a new instance of MockAssetPublisher. 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 (*MockAssetPublisher) AddReleaseAssetLocation ¶
func (_mock *MockAssetPublisher) AddReleaseAssetLocation(ctx context.Context, owner string, repo string, tagName string, asset forge.ReleaseAssetSource) error
AddReleaseAssetLocation provides a mock function for the type MockAssetPublisher
func (*MockAssetPublisher) CreateReleaseWithAssets ¶
func (_mock *MockAssetPublisher) CreateReleaseWithAssets(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft, assets []forge.ReleaseAssetSource) (forge.Release, error)
CreateReleaseWithAssets provides a mock function for the type MockAssetPublisher
func (*MockAssetPublisher) EXPECT ¶
func (_m *MockAssetPublisher) EXPECT() *MockAssetPublisher_Expecter
type MockAssetPublisher_AddReleaseAssetLocation_Call ¶
MockAssetPublisher_AddReleaseAssetLocation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReleaseAssetLocation'
func (*MockAssetPublisher_AddReleaseAssetLocation_Call) Return ¶
func (_c *MockAssetPublisher_AddReleaseAssetLocation_Call) Return(err error) *MockAssetPublisher_AddReleaseAssetLocation_Call
func (*MockAssetPublisher_AddReleaseAssetLocation_Call) Run ¶
func (_c *MockAssetPublisher_AddReleaseAssetLocation_Call) Run(run func(ctx context.Context, owner string, repo string, tagName string, asset forge.ReleaseAssetSource)) *MockAssetPublisher_AddReleaseAssetLocation_Call
func (*MockAssetPublisher_AddReleaseAssetLocation_Call) RunAndReturn ¶
func (_c *MockAssetPublisher_AddReleaseAssetLocation_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tagName string, asset forge.ReleaseAssetSource) error) *MockAssetPublisher_AddReleaseAssetLocation_Call
type MockAssetPublisher_CreateReleaseWithAssets_Call ¶
MockAssetPublisher_CreateReleaseWithAssets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateReleaseWithAssets'
func (*MockAssetPublisher_CreateReleaseWithAssets_Call) Return ¶
func (_c *MockAssetPublisher_CreateReleaseWithAssets_Call) Return(release forge.Release, err error) *MockAssetPublisher_CreateReleaseWithAssets_Call
func (*MockAssetPublisher_CreateReleaseWithAssets_Call) Run ¶
func (_c *MockAssetPublisher_CreateReleaseWithAssets_Call) Run(run func(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft, assets []forge.ReleaseAssetSource)) *MockAssetPublisher_CreateReleaseWithAssets_Call
func (*MockAssetPublisher_CreateReleaseWithAssets_Call) RunAndReturn ¶
func (_c *MockAssetPublisher_CreateReleaseWithAssets_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft, assets []forge.ReleaseAssetSource) (forge.Release, error)) *MockAssetPublisher_CreateReleaseWithAssets_Call
type MockAssetPublisher_Expecter ¶
type MockAssetPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAssetPublisher_Expecter) AddReleaseAssetLocation ¶
func (_e *MockAssetPublisher_Expecter) AddReleaseAssetLocation(ctx any, owner any, repo any, tagName any, asset any) *MockAssetPublisher_AddReleaseAssetLocation_Call
AddReleaseAssetLocation is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tagName string
- asset forge.ReleaseAssetSource
func (*MockAssetPublisher_Expecter) CreateReleaseWithAssets ¶
func (_e *MockAssetPublisher_Expecter) CreateReleaseWithAssets(ctx any, owner any, repo any, draft any, assets any) *MockAssetPublisher_CreateReleaseWithAssets_Call
CreateReleaseWithAssets is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- draft forge.ReleaseDraft
- assets []forge.ReleaseAssetSource
type MockPublisher ¶
MockPublisher is an autogenerated mock type for the Publisher type
func NewMockPublisher ¶
func NewMockPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *MockPublisher
NewMockPublisher creates a new instance of MockPublisher. 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 (*MockPublisher) CreateRelease ¶
func (_mock *MockPublisher) CreateRelease(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft) (forge.Release, error)
CreateRelease provides a mock function for the type MockPublisher
func (*MockPublisher) EXPECT ¶
func (_m *MockPublisher) EXPECT() *MockPublisher_Expecter
type MockPublisher_CreateRelease_Call ¶
MockPublisher_CreateRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRelease'
func (*MockPublisher_CreateRelease_Call) Return ¶
func (_c *MockPublisher_CreateRelease_Call) Return(release forge.Release, err error) *MockPublisher_CreateRelease_Call
func (*MockPublisher_CreateRelease_Call) Run ¶
func (_c *MockPublisher_CreateRelease_Call) Run(run func(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft)) *MockPublisher_CreateRelease_Call
func (*MockPublisher_CreateRelease_Call) RunAndReturn ¶
func (_c *MockPublisher_CreateRelease_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, draft forge.ReleaseDraft) (forge.Release, error)) *MockPublisher_CreateRelease_Call
type MockPublisher_Expecter ¶
type MockPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPublisher_Expecter) CreateRelease ¶
func (_e *MockPublisher_Expecter) CreateRelease(ctx any, owner any, repo any, draft any) *MockPublisher_CreateRelease_Call
CreateRelease is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- draft forge.ReleaseDraft
type MockResolver ¶
MockResolver is an autogenerated mock type for the Resolver type
func NewMockResolver ¶
func NewMockResolver(t interface {
mock.TestingT
Cleanup(func())
}) *MockResolver
NewMockResolver creates a new instance of MockResolver. 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 (*MockResolver) EXPECT ¶
func (_m *MockResolver) EXPECT() *MockResolver_Expecter
func (*MockResolver) FindLastMerged ¶
func (_mock *MockResolver) FindLastMerged(ctx context.Context, owner string, repo string, sourceBranch string) (forge.PullRequest, error)
FindLastMerged provides a mock function for the type MockResolver
func (*MockResolver) ResolveMergedCommit ¶
func (_mock *MockResolver) ResolveMergedCommit(ctx context.Context, owner string, repo string, number int) (string, error)
ResolveMergedCommit provides a mock function for the type MockResolver
type MockResolver_Expecter ¶
type MockResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*MockResolver_Expecter) FindLastMerged ¶
func (_e *MockResolver_Expecter) FindLastMerged(ctx any, owner any, repo any, sourceBranch any) *MockResolver_FindLastMerged_Call
FindLastMerged is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- sourceBranch string
func (*MockResolver_Expecter) ResolveMergedCommit ¶
func (_e *MockResolver_Expecter) ResolveMergedCommit(ctx any, owner any, repo any, number any) *MockResolver_ResolveMergedCommit_Call
ResolveMergedCommit is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
type MockResolver_FindLastMerged_Call ¶
MockResolver_FindLastMerged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindLastMerged'
func (*MockResolver_FindLastMerged_Call) Return ¶
func (_c *MockResolver_FindLastMerged_Call) Return(pullRequest forge.PullRequest, err error) *MockResolver_FindLastMerged_Call
func (*MockResolver_FindLastMerged_Call) Run ¶
func (_c *MockResolver_FindLastMerged_Call) Run(run func(ctx context.Context, owner string, repo string, sourceBranch string)) *MockResolver_FindLastMerged_Call
func (*MockResolver_FindLastMerged_Call) RunAndReturn ¶
func (_c *MockResolver_FindLastMerged_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, sourceBranch string) (forge.PullRequest, error)) *MockResolver_FindLastMerged_Call
type MockResolver_ResolveMergedCommit_Call ¶
MockResolver_ResolveMergedCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveMergedCommit'
func (*MockResolver_ResolveMergedCommit_Call) Return ¶
func (_c *MockResolver_ResolveMergedCommit_Call) Return(s string, err error) *MockResolver_ResolveMergedCommit_Call
func (*MockResolver_ResolveMergedCommit_Call) Run ¶
func (_c *MockResolver_ResolveMergedCommit_Call) Run(run func(ctx context.Context, owner string, repo string, number int)) *MockResolver_ResolveMergedCommit_Call
func (*MockResolver_ResolveMergedCommit_Call) RunAndReturn ¶
func (_c *MockResolver_ResolveMergedCommit_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int) (string, error)) *MockResolver_ResolveMergedCommit_Call
type MockTagger ¶
MockTagger is an autogenerated mock type for the Tagger type
func NewMockTagger ¶
func NewMockTagger(t interface {
mock.TestingT
Cleanup(func())
}) *MockTagger
NewMockTagger creates a new instance of MockTagger. 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 (*MockTagger) Contains ¶
func (_mock *MockTagger) Contains(ctx context.Context, req tree.ContainsRequest) (bool, error)
Contains provides a mock function for the type MockTagger
func (*MockTagger) EXPECT ¶
func (_m *MockTagger) EXPECT() *MockTagger_Expecter
func (*MockTagger) FileAt ¶
func (_mock *MockTagger) FileAt(ctx context.Context, req tree.FileRequest) ([]byte, error)
FileAt provides a mock function for the type MockTagger
func (*MockTagger) ResolveTag ¶
ResolveTag provides a mock function for the type MockTagger
type MockTagger_Contains_Call ¶
MockTagger_Contains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Contains'
func (*MockTagger_Contains_Call) Return ¶
func (_c *MockTagger_Contains_Call) Return(b bool, err error) *MockTagger_Contains_Call
func (*MockTagger_Contains_Call) Run ¶
func (_c *MockTagger_Contains_Call) Run(run func(ctx context.Context, req tree.ContainsRequest)) *MockTagger_Contains_Call
func (*MockTagger_Contains_Call) RunAndReturn ¶
func (_c *MockTagger_Contains_Call) RunAndReturn(run func(ctx context.Context, req tree.ContainsRequest) (bool, error)) *MockTagger_Contains_Call
type MockTagger_Expecter ¶
type MockTagger_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTagger_Expecter) Contains ¶
func (_e *MockTagger_Expecter) Contains(ctx any, req any) *MockTagger_Contains_Call
Contains is a helper method to define mock.On call
- ctx context.Context
- req tree.ContainsRequest
func (*MockTagger_Expecter) FileAt ¶
func (_e *MockTagger_Expecter) FileAt(ctx any, req any) *MockTagger_FileAt_Call
FileAt is a helper method to define mock.On call
- ctx context.Context
- req tree.FileRequest
func (*MockTagger_Expecter) ResolveTag ¶
func (_e *MockTagger_Expecter) ResolveTag(ctx any, req any) *MockTagger_ResolveTag_Call
ResolveTag is a helper method to define mock.On call
- ctx context.Context
- req tree.TagLookup
func (*MockTagger_Expecter) Tag ¶
func (_e *MockTagger_Expecter) Tag(ctx any, spec any) *MockTagger_Tag_Call
Tag is a helper method to define mock.On call
- ctx context.Context
- spec tree.TagSpec
type MockTagger_FileAt_Call ¶
MockTagger_FileAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileAt'
func (*MockTagger_FileAt_Call) Return ¶
func (_c *MockTagger_FileAt_Call) Return(bytes []byte, err error) *MockTagger_FileAt_Call
func (*MockTagger_FileAt_Call) Run ¶
func (_c *MockTagger_FileAt_Call) Run(run func(ctx context.Context, req tree.FileRequest)) *MockTagger_FileAt_Call
func (*MockTagger_FileAt_Call) RunAndReturn ¶
func (_c *MockTagger_FileAt_Call) RunAndReturn(run func(ctx context.Context, req tree.FileRequest) ([]byte, error)) *MockTagger_FileAt_Call
type MockTagger_ResolveTag_Call ¶
MockTagger_ResolveTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveTag'
func (*MockTagger_ResolveTag_Call) Return ¶
func (_c *MockTagger_ResolveTag_Call) Return(s string, err error) *MockTagger_ResolveTag_Call
func (*MockTagger_ResolveTag_Call) Run ¶
func (_c *MockTagger_ResolveTag_Call) Run(run func(ctx context.Context, req tree.TagLookup)) *MockTagger_ResolveTag_Call
func (*MockTagger_ResolveTag_Call) RunAndReturn ¶
func (_c *MockTagger_ResolveTag_Call) RunAndReturn(run func(ctx context.Context, req tree.TagLookup) (string, error)) *MockTagger_ResolveTag_Call
type MockTagger_Tag_Call ¶
MockTagger_Tag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tag'
func (*MockTagger_Tag_Call) Return ¶
func (_c *MockTagger_Tag_Call) Return(tagResult tree.TagResult, err error) *MockTagger_Tag_Call
func (*MockTagger_Tag_Call) Run ¶
func (_c *MockTagger_Tag_Call) Run(run func(ctx context.Context, spec tree.TagSpec)) *MockTagger_Tag_Call
func (*MockTagger_Tag_Call) RunAndReturn ¶
func (_c *MockTagger_Tag_Call) RunAndReturn(run func(ctx context.Context, spec tree.TagSpec) (tree.TagResult, error)) *MockTagger_Tag_Call