publish

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 4 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 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 MockResolver

type MockResolver struct {
	mock.Mock
}

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

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

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

func (*MockResolver_ResolveMergedCommit_Call) RunAndReturn

type MockTagger

type MockTagger struct {
	mock.Mock
}

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

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

ResolveTag provides a mock function for the type MockTagger

func (*MockTagger) Tag

func (_mock *MockTagger) Tag(ctx context.Context, spec tree.TagSpec) (tree.TagResult, error)

Tag provides a mock function for the type MockTagger

type MockTagger_Contains_Call

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

func (*MockTagger_Contains_Call) RunAndReturn

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

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

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

func (*MockTagger_ResolveTag_Call) RunAndReturn

type MockTagger_Tag_Call

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

Jump to

Keyboard shortcuts

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