mocks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthMonitor

type HealthMonitor struct {
	mock.Mock
}

HealthMonitor is an autogenerated mock type for the HealthMonitor type

func NewHealthMonitor

func NewHealthMonitor(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthMonitor

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

func (_m *HealthMonitor) EXPECT() *HealthMonitor_Expecter

func (*HealthMonitor) Start

func (_m *HealthMonitor) Start() error

Start provides a mock function with given fields:

func (*HealthMonitor) Stop

func (_m *HealthMonitor) Stop() error

Stop provides a mock function with given fields:

func (*HealthMonitor) Subscribe

func (_m *HealthMonitor) Subscribe() <-chan error

Subscribe provides a mock function with given fields:

type HealthMonitor_Expecter

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

func (*HealthMonitor_Expecter) Start

Start is a helper method to define mock.On call

func (*HealthMonitor_Expecter) Stop

Stop is a helper method to define mock.On call

func (*HealthMonitor_Expecter) Subscribe

Subscribe is a helper method to define mock.On call

type HealthMonitor_Start_Call

type HealthMonitor_Start_Call struct {
	*mock.Call
}

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

func (*HealthMonitor_Start_Call) Return

func (*HealthMonitor_Start_Call) Run

func (*HealthMonitor_Start_Call) RunAndReturn

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

type HealthMonitor_Stop_Call

type HealthMonitor_Stop_Call struct {
	*mock.Call
}

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

func (*HealthMonitor_Stop_Call) Return

func (*HealthMonitor_Stop_Call) Run

func (_c *HealthMonitor_Stop_Call) Run(run func()) *HealthMonitor_Stop_Call

func (*HealthMonitor_Stop_Call) RunAndReturn

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

type HealthMonitor_Subscribe_Call

type HealthMonitor_Subscribe_Call struct {
	*mock.Call
}

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

func (*HealthMonitor_Subscribe_Call) Return

func (*HealthMonitor_Subscribe_Call) Run

func (*HealthMonitor_Subscribe_Call) RunAndReturn

func (_c *HealthMonitor_Subscribe_Call) RunAndReturn(run func() <-chan error) *HealthMonitor_Subscribe_Call

Jump to

Keyboard shortcuts

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