release

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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 MockAssetPublisher

type MockAssetPublisher struct {
	mock.Mock
}

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

type MockAssetPublisher_AddReleaseAssetLocation_Call

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

func (*MockAssetPublisher_AddReleaseAssetLocation_Call) RunAndReturn

type MockAssetPublisher_CreateReleaseWithAssets_Call

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

func (*MockAssetPublisher_CreateReleaseWithAssets_Call) RunAndReturn

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

type MockCheckouter struct {
	mock.Mock
}

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

type MockCheckouter_Checkout_Call

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

func (*MockCheckouter_Checkout_Call) RunAndReturn

type MockCheckouter_Expecter

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

func (*MockCheckouter_Expecter) Checkout

Checkout is a helper method to define mock.On call

  • ctx context.Context
  • spec tree.CheckoutSpec

type MockDraftPublisher

type MockDraftPublisher struct {
	mock.Mock
}

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 (*MockDraftPublisher) PublishRelease

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

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

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

func (*MockDraftPublisher_PublishRelease_Call) Run

func (*MockDraftPublisher_PublishRelease_Call) RunAndReturn

type MockNotes

type MockNotes struct {
	mock.Mock
}

MockNotes is an autogenerated mock type for the Notes type

func NewMockNotes

func NewMockNotes(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockNotes

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

func (*MockNotes) Generate

func (_mock *MockNotes) Generate(ctx context.Context, src release.Source) (string, error)

Generate provides a mock function for the type MockNotes

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

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

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

type MockPublisher struct {
	mock.Mock
}

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

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

func (*MockPublisher_CreateRelease_Call) RunAndReturn

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

type MockReader struct {
	mock.Mock
}

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

func (*MockReader) GetReleaseByTag

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

GetReleaseByTag provides a mock function for the type MockReader

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

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

func (*MockReader_GetReleaseByTag_Call) RunAndReturn

type MockTree

type MockTree struct {
	mock.Mock
}

MockTree is an autogenerated mock type for the Tree type

func NewMockTree

func NewMockTree(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTree

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) Contains

func (_mock *MockTree) Contains(ctx context.Context, req tree.ContainsRequest) (bool, error)

Contains provides a mock function for the type MockTree

func (*MockTree) EXPECT

func (_m *MockTree) EXPECT() *MockTree_Expecter

func (*MockTree) FileAt

func (_mock *MockTree) FileAt(ctx context.Context, req tree.FileRequest) ([]byte, error)

FileAt provides a mock function for the type MockTree

func (*MockTree) ResolveTag

func (_mock *MockTree) ResolveTag(ctx context.Context, req tree.TagLookup) (string, error)

ResolveTag provides a mock function for the type MockTree

type MockTree_Contains_Call

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

func (*MockTree_Contains_Call) RunAndReturn

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

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

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

func (*MockTree_ResolveTag_Call) RunAndReturn

Jump to

Keyboard shortcuts

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