mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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