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 MockCheckouter
- type MockCheckouter_Checkout_Call
- func (_c *MockCheckouter_Checkout_Call) Return(s string, err error) *MockCheckouter_Checkout_Call
- func (_c *MockCheckouter_Checkout_Call) Run(run func(ctx context.Context, spec tree.CheckoutSpec)) *MockCheckouter_Checkout_Call
- func (_c *MockCheckouter_Checkout_Call) RunAndReturn(run func(ctx context.Context, spec tree.CheckoutSpec) (string, error)) *MockCheckouter_Checkout_Call
- type MockCheckouter_Expecter
- type MockDraftPublisher
- type MockDraftPublisher_Expecter
- type MockDraftPublisher_PublishRelease_Call
- func (_c *MockDraftPublisher_PublishRelease_Call) Return(release forge.Release, err error) *MockDraftPublisher_PublishRelease_Call
- func (_c *MockDraftPublisher_PublishRelease_Call) Run(run func(ctx context.Context, owner string, repo string, tagName string)) *MockDraftPublisher_PublishRelease_Call
- func (_c *MockDraftPublisher_PublishRelease_Call) RunAndReturn(...) *MockDraftPublisher_PublishRelease_Call
- type MockNotes
- type MockNotes_Expecter
- type MockNotes_Generate_Call
- func (_c *MockNotes_Generate_Call) Return(s string, err error) *MockNotes_Generate_Call
- func (_c *MockNotes_Generate_Call) Run(run func(ctx context.Context, src release.Source)) *MockNotes_Generate_Call
- func (_c *MockNotes_Generate_Call) RunAndReturn(run func(ctx context.Context, src release.Source) (string, error)) *MockNotes_Generate_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 MockReader
- type MockReader_Expecter
- type MockReader_GetReleaseByTag_Call
- func (_c *MockReader_GetReleaseByTag_Call) Return(release forge.Release, err error) *MockReader_GetReleaseByTag_Call
- func (_c *MockReader_GetReleaseByTag_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *MockReader_GetReleaseByTag_Call
- func (_c *MockReader_GetReleaseByTag_Call) RunAndReturn(...) *MockReader_GetReleaseByTag_Call
- type MockTree
- func (_mock *MockTree) Contains(ctx context.Context, req tree.ContainsRequest) (bool, error)
- func (_m *MockTree) EXPECT() *MockTree_Expecter
- func (_mock *MockTree) FileAt(ctx context.Context, req tree.FileRequest) ([]byte, error)
- func (_mock *MockTree) ResolveTag(ctx context.Context, req tree.TagLookup) (string, error)
- type MockTree_Contains_Call
- func (_c *MockTree_Contains_Call) Return(b bool, err error) *MockTree_Contains_Call
- func (_c *MockTree_Contains_Call) Run(run func(ctx context.Context, req tree.ContainsRequest)) *MockTree_Contains_Call
- func (_c *MockTree_Contains_Call) RunAndReturn(run func(ctx context.Context, req tree.ContainsRequest) (bool, error)) *MockTree_Contains_Call
- type MockTree_Expecter
- type MockTree_FileAt_Call
- func (_c *MockTree_FileAt_Call) Return(bytes []byte, err error) *MockTree_FileAt_Call
- func (_c *MockTree_FileAt_Call) Run(run func(ctx context.Context, req tree.FileRequest)) *MockTree_FileAt_Call
- func (_c *MockTree_FileAt_Call) RunAndReturn(run func(ctx context.Context, req tree.FileRequest) ([]byte, error)) *MockTree_FileAt_Call
- type MockTree_ResolveTag_Call
- func (_c *MockTree_ResolveTag_Call) Return(s string, err error) *MockTree_ResolveTag_Call
- func (_c *MockTree_ResolveTag_Call) Run(run func(ctx context.Context, req tree.TagLookup)) *MockTree_ResolveTag_Call
- func (_c *MockTree_ResolveTag_Call) RunAndReturn(run func(ctx context.Context, req tree.TagLookup) (string, error)) *MockTree_ResolveTag_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 MockCheckouter ¶
MockCheckouter is an autogenerated mock type for the Checkouter type
func NewMockCheckouter ¶
func NewMockCheckouter(t interface {
mock.TestingT
Cleanup(func())
}) *MockCheckouter
NewMockCheckouter creates a new instance of MockCheckouter. 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 (*MockCheckouter) Checkout ¶
func (_mock *MockCheckouter) Checkout(ctx context.Context, spec tree.CheckoutSpec) (string, error)
Checkout provides a mock function for the type MockCheckouter
func (*MockCheckouter) EXPECT ¶
func (_m *MockCheckouter) EXPECT() *MockCheckouter_Expecter
type MockCheckouter_Checkout_Call ¶
MockCheckouter_Checkout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Checkout'
func (*MockCheckouter_Checkout_Call) Return ¶
func (_c *MockCheckouter_Checkout_Call) Return(s string, err error) *MockCheckouter_Checkout_Call
func (*MockCheckouter_Checkout_Call) Run ¶
func (_c *MockCheckouter_Checkout_Call) Run(run func(ctx context.Context, spec tree.CheckoutSpec)) *MockCheckouter_Checkout_Call
func (*MockCheckouter_Checkout_Call) RunAndReturn ¶
func (_c *MockCheckouter_Checkout_Call) RunAndReturn(run func(ctx context.Context, spec tree.CheckoutSpec) (string, error)) *MockCheckouter_Checkout_Call
type MockCheckouter_Expecter ¶
type MockCheckouter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCheckouter_Expecter) Checkout ¶
func (_e *MockCheckouter_Expecter) Checkout(ctx any, spec any) *MockCheckouter_Checkout_Call
Checkout is a helper method to define mock.On call
- ctx context.Context
- spec tree.CheckoutSpec
type MockDraftPublisher ¶
MockDraftPublisher is an autogenerated mock type for the DraftPublisher type
func NewMockDraftPublisher ¶
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 ¶
func (_m *MockDraftPublisher) EXPECT() *MockDraftPublisher_Expecter
type MockDraftPublisher_Expecter ¶
type MockDraftPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDraftPublisher_Expecter) PublishRelease ¶
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 ¶
MockDraftPublisher_PublishRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishRelease'
func (*MockDraftPublisher_PublishRelease_Call) Return ¶
func (_c *MockDraftPublisher_PublishRelease_Call) Return(release forge.Release, err error) *MockDraftPublisher_PublishRelease_Call
func (*MockDraftPublisher_PublishRelease_Call) Run ¶
func (_c *MockDraftPublisher_PublishRelease_Call) Run(run func(ctx context.Context, owner string, repo string, tagName string)) *MockDraftPublisher_PublishRelease_Call
func (*MockDraftPublisher_PublishRelease_Call) RunAndReturn ¶
func (_c *MockDraftPublisher_PublishRelease_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tagName string) (forge.Release, error)) *MockDraftPublisher_PublishRelease_Call
type MockNotes ¶
MockNotes is an autogenerated mock type for the Notes type
func NewMockNotes ¶
NewMockNotes creates a new instance of MockNotes. 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 (*MockNotes) EXPECT ¶
func (_m *MockNotes) EXPECT() *MockNotes_Expecter
type MockNotes_Expecter ¶
type MockNotes_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNotes_Expecter) Generate ¶
func (_e *MockNotes_Expecter) Generate(ctx any, src any) *MockNotes_Generate_Call
Generate is a helper method to define mock.On call
- ctx context.Context
- src release.Source
type MockNotes_Generate_Call ¶
MockNotes_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'
func (*MockNotes_Generate_Call) Return ¶
func (_c *MockNotes_Generate_Call) Return(s string, err error) *MockNotes_Generate_Call
func (*MockNotes_Generate_Call) Run ¶
func (_c *MockNotes_Generate_Call) Run(run func(ctx context.Context, src release.Source)) *MockNotes_Generate_Call
func (*MockNotes_Generate_Call) RunAndReturn ¶
func (_c *MockNotes_Generate_Call) RunAndReturn(run func(ctx context.Context, src release.Source) (string, error)) *MockNotes_Generate_Call
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 MockReader ¶
MockReader is an autogenerated mock type for the Reader type
func NewMockReader ¶
func NewMockReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockReader
NewMockReader creates a new instance of MockReader. 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 (*MockReader) EXPECT ¶
func (_m *MockReader) EXPECT() *MockReader_Expecter
type MockReader_Expecter ¶
type MockReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReader_Expecter) GetReleaseByTag ¶
func (_e *MockReader_Expecter) GetReleaseByTag(ctx any, owner any, repo any, tag any) *MockReader_GetReleaseByTag_Call
GetReleaseByTag is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tag string
type MockReader_GetReleaseByTag_Call ¶
MockReader_GetReleaseByTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseByTag'
func (*MockReader_GetReleaseByTag_Call) Return ¶
func (_c *MockReader_GetReleaseByTag_Call) Return(release forge.Release, err error) *MockReader_GetReleaseByTag_Call
func (*MockReader_GetReleaseByTag_Call) Run ¶
func (_c *MockReader_GetReleaseByTag_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *MockReader_GetReleaseByTag_Call
func (*MockReader_GetReleaseByTag_Call) RunAndReturn ¶
func (_c *MockReader_GetReleaseByTag_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, tag string) (forge.Release, error)) *MockReader_GetReleaseByTag_Call
type MockTree ¶
MockTree is an autogenerated mock type for the Tree type
func NewMockTree ¶
NewMockTree creates a new instance of MockTree. 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 (*MockTree) EXPECT ¶
func (_m *MockTree) EXPECT() *MockTree_Expecter
type MockTree_Contains_Call ¶
MockTree_Contains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Contains'
func (*MockTree_Contains_Call) Return ¶
func (_c *MockTree_Contains_Call) Return(b bool, err error) *MockTree_Contains_Call
func (*MockTree_Contains_Call) Run ¶
func (_c *MockTree_Contains_Call) Run(run func(ctx context.Context, req tree.ContainsRequest)) *MockTree_Contains_Call
func (*MockTree_Contains_Call) RunAndReturn ¶
func (_c *MockTree_Contains_Call) RunAndReturn(run func(ctx context.Context, req tree.ContainsRequest) (bool, error)) *MockTree_Contains_Call
type MockTree_Expecter ¶
type MockTree_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTree_Expecter) Contains ¶
func (_e *MockTree_Expecter) Contains(ctx any, req any) *MockTree_Contains_Call
Contains is a helper method to define mock.On call
- ctx context.Context
- req tree.ContainsRequest
func (*MockTree_Expecter) FileAt ¶
func (_e *MockTree_Expecter) FileAt(ctx any, req any) *MockTree_FileAt_Call
FileAt is a helper method to define mock.On call
- ctx context.Context
- req tree.FileRequest
func (*MockTree_Expecter) ResolveTag ¶
func (_e *MockTree_Expecter) ResolveTag(ctx any, req any) *MockTree_ResolveTag_Call
ResolveTag is a helper method to define mock.On call
- ctx context.Context
- req tree.TagLookup
type MockTree_FileAt_Call ¶
MockTree_FileAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FileAt'
func (*MockTree_FileAt_Call) Return ¶
func (_c *MockTree_FileAt_Call) Return(bytes []byte, err error) *MockTree_FileAt_Call
func (*MockTree_FileAt_Call) Run ¶
func (_c *MockTree_FileAt_Call) Run(run func(ctx context.Context, req tree.FileRequest)) *MockTree_FileAt_Call
func (*MockTree_FileAt_Call) RunAndReturn ¶
func (_c *MockTree_FileAt_Call) RunAndReturn(run func(ctx context.Context, req tree.FileRequest) ([]byte, error)) *MockTree_FileAt_Call
type MockTree_ResolveTag_Call ¶
MockTree_ResolveTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveTag'
func (*MockTree_ResolveTag_Call) Return ¶
func (_c *MockTree_ResolveTag_Call) Return(s string, err error) *MockTree_ResolveTag_Call
func (*MockTree_ResolveTag_Call) Run ¶
func (_c *MockTree_ResolveTag_Call) Run(run func(ctx context.Context, req tree.TagLookup)) *MockTree_ResolveTag_Call
func (*MockTree_ResolveTag_Call) RunAndReturn ¶
func (_c *MockTree_ResolveTag_Call) RunAndReturn(run func(ctx context.Context, req tree.TagLookup) (string, error)) *MockTree_ResolveTag_Call