mocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm struct {
	mock.Mock
}

Algorithm is an autogenerated mock type for the Algorithm type

func NewAlgorithm

func NewAlgorithm(t interface {
	mock.TestingT
	Cleanup(func())
}) *Algorithm

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

func (_m *Algorithm) EXPECT() *Algorithm_Expecter

func (*Algorithm) Run

func (_mock *Algorithm) Run() error

Run provides a mock function for the type Algorithm

func (*Algorithm) Stop

func (_mock *Algorithm) Stop() error

Stop provides a mock function for the type Algorithm

type Algorithm_Expecter

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

func (*Algorithm_Expecter) Run

Run is a helper method to define mock.On call

func (*Algorithm_Expecter) Stop

Stop is a helper method to define mock.On call

type Algorithm_Run_Call

type Algorithm_Run_Call struct {
	*mock.Call
}

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

func (*Algorithm_Run_Call) Return

func (_c *Algorithm_Run_Call) Return(err error) *Algorithm_Run_Call

func (*Algorithm_Run_Call) Run

func (_c *Algorithm_Run_Call) Run(run func()) *Algorithm_Run_Call

func (*Algorithm_Run_Call) RunAndReturn

func (_c *Algorithm_Run_Call) RunAndReturn(run func() error) *Algorithm_Run_Call

type Algorithm_Stop_Call

type Algorithm_Stop_Call struct {
	*mock.Call
}

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

func (*Algorithm_Stop_Call) Return

func (*Algorithm_Stop_Call) Run

func (_c *Algorithm_Stop_Call) Run(run func()) *Algorithm_Stop_Call

func (*Algorithm_Stop_Call) RunAndReturn

func (_c *Algorithm_Stop_Call) RunAndReturn(run func() error) *Algorithm_Stop_Call

Jump to

Keyboard shortcuts

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