mocks

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 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 MockRunner

type MockRunner struct {
	mock.Mock
}

MockRunner is an autogenerated mock type for the Runner type

func NewMockRunner

func NewMockRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRunner

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

func (_m *MockRunner) EXPECT() *MockRunner_Expecter

func (*MockRunner) Run

func (_mock *MockRunner) Run(ctx context.Context) error

Run provides a mock function for the type MockRunner

func (*MockRunner) Shutdown

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

Shutdown provides a mock function for the type MockRunner

type MockRunner_Expecter

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

func (*MockRunner_Expecter) Run

Run is a helper method to define mock.On call

  • ctx context.Context

func (*MockRunner_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

  • ctx context.Context

type MockRunner_Run_Call

type MockRunner_Run_Call struct {
	*mock.Call
}

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

func (*MockRunner_Run_Call) Return

func (*MockRunner_Run_Call) Run

func (_c *MockRunner_Run_Call) Run(run func(ctx context.Context)) *MockRunner_Run_Call

func (*MockRunner_Run_Call) RunAndReturn

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

type MockRunner_Shutdown_Call

type MockRunner_Shutdown_Call struct {
	*mock.Call
}

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

func (*MockRunner_Shutdown_Call) Return

func (*MockRunner_Shutdown_Call) Run

func (*MockRunner_Shutdown_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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