mocks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shutdowner

type Shutdowner struct {
	mock.Mock
}

Shutdowner is an autogenerated mock type for the Shutdowner type

func NewShutdowner

func NewShutdowner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Shutdowner

NewShutdowner creates a new instance of Shutdowner. 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 (*Shutdowner) EXPECT

func (_m *Shutdowner) EXPECT() *Shutdowner_Expecter

func (*Shutdowner) Shutdown

func (_mock *Shutdowner) Shutdown(ctx context.Context) error

Shutdown provides a mock function for the type Shutdowner

type Shutdowner_Expecter

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

func (*Shutdowner_Expecter) Shutdown

func (_e *Shutdowner_Expecter) Shutdown(ctx interface{}) *Shutdowner_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx context.Context

type Shutdowner_Shutdown_Call

type Shutdowner_Shutdown_Call struct {
	*mock.Call
}

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

func (*Shutdowner_Shutdown_Call) Return

func (*Shutdowner_Shutdown_Call) Run

func (*Shutdowner_Shutdown_Call) RunAndReturn

func (_c *Shutdowner_Shutdown_Call) RunAndReturn(run func(ctx context.Context) error) *Shutdowner_Shutdown_Call

Jump to

Keyboard shortcuts

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