mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Releaser

type Releaser struct {
	mock.Mock
}

Releaser is an autogenerated mock type for the Releaser type

func NewReleaser

func NewReleaser(t interface {
	mock.TestingT
	Cleanup(func())
}) *Releaser

NewReleaser creates a new instance of Releaser. 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 (*Releaser) CreateRelease

func (_mock *Releaser) CreateRelease(ctx context.Context, opts forge.CreateReleaseOptions) error

CreateRelease provides a mock function for the type Releaser

func (*Releaser) EXPECT

func (_m *Releaser) EXPECT() *Releaser_Expecter

type Releaser_CreateRelease_Call

type Releaser_CreateRelease_Call struct {
	*mock.Call
}

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

func (*Releaser_CreateRelease_Call) Return

func (*Releaser_CreateRelease_Call) Run

func (*Releaser_CreateRelease_Call) RunAndReturn

type Releaser_Expecter

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

func (*Releaser_Expecter) CreateRelease

func (_e *Releaser_Expecter) CreateRelease(ctx interface{}, opts interface{}) *Releaser_CreateRelease_Call

CreateRelease is a helper method to define mock.On call

  • ctx context.Context
  • opts forge.CreateReleaseOptions

Jump to

Keyboard shortcuts

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