mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 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 Checker

type Checker struct {
	mock.Mock
}

Checker is an autogenerated mock type for the Checker type

func NewChecker

func NewChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Checker

NewChecker creates a new instance of Checker. 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 (*Checker) Close

func (_m *Checker) Close() error

Close provides a mock function with given fields:

func (*Checker) EXPECT added in v2.15.0

func (_m *Checker) EXPECT() *Checker_Expecter

func (*Checker) IsHealthy

func (_m *Checker) IsHealthy() (bool, map[string]error)

IsHealthy provides a mock function with given fields:

func (*Checker) IsReady

func (_m *Checker) IsReady() (bool, map[string]error)

IsReady provides a mock function with given fields:

func (*Checker) Register

func (_m *Checker) Register(service pkgservices.HealthReporter) error

Register provides a mock function with given fields: service

func (*Checker) Start

func (_m *Checker) Start() error

Start provides a mock function with given fields:

func (*Checker) Unregister

func (_m *Checker) Unregister(name string) error

Unregister provides a mock function with given fields: name

type Checker_Close_Call added in v2.15.0

type Checker_Close_Call struct {
	*mock.Call
}

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

func (*Checker_Close_Call) Return added in v2.15.0

func (_c *Checker_Close_Call) Return(_a0 error) *Checker_Close_Call

func (*Checker_Close_Call) Run added in v2.15.0

func (_c *Checker_Close_Call) Run(run func()) *Checker_Close_Call

func (*Checker_Close_Call) RunAndReturn added in v2.15.0

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

type Checker_Expecter added in v2.15.0

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

func (*Checker_Expecter) Close added in v2.15.0

func (_e *Checker_Expecter) Close() *Checker_Close_Call

Close is a helper method to define mock.On call

func (*Checker_Expecter) IsHealthy added in v2.15.0

func (_e *Checker_Expecter) IsHealthy() *Checker_IsHealthy_Call

IsHealthy is a helper method to define mock.On call

func (*Checker_Expecter) IsReady added in v2.15.0

func (_e *Checker_Expecter) IsReady() *Checker_IsReady_Call

IsReady is a helper method to define mock.On call

func (*Checker_Expecter) Register added in v2.15.0

func (_e *Checker_Expecter) Register(service interface{}) *Checker_Register_Call

Register is a helper method to define mock.On call

  • service pkgservices.HealthReporter

func (*Checker_Expecter) Start added in v2.15.0

func (_e *Checker_Expecter) Start() *Checker_Start_Call

Start is a helper method to define mock.On call

func (*Checker_Expecter) Unregister added in v2.15.0

func (_e *Checker_Expecter) Unregister(name interface{}) *Checker_Unregister_Call

Unregister is a helper method to define mock.On call

  • name string

type Checker_IsHealthy_Call added in v2.15.0

type Checker_IsHealthy_Call struct {
	*mock.Call
}

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

func (*Checker_IsHealthy_Call) Return added in v2.15.0

func (_c *Checker_IsHealthy_Call) Return(healthy bool, errors map[string]error) *Checker_IsHealthy_Call

func (*Checker_IsHealthy_Call) Run added in v2.15.0

func (_c *Checker_IsHealthy_Call) Run(run func()) *Checker_IsHealthy_Call

func (*Checker_IsHealthy_Call) RunAndReturn added in v2.15.0

func (_c *Checker_IsHealthy_Call) RunAndReturn(run func() (bool, map[string]error)) *Checker_IsHealthy_Call

type Checker_IsReady_Call added in v2.15.0

type Checker_IsReady_Call struct {
	*mock.Call
}

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

func (*Checker_IsReady_Call) Return added in v2.15.0

func (_c *Checker_IsReady_Call) Return(ready bool, errors map[string]error) *Checker_IsReady_Call

func (*Checker_IsReady_Call) Run added in v2.15.0

func (_c *Checker_IsReady_Call) Run(run func()) *Checker_IsReady_Call

func (*Checker_IsReady_Call) RunAndReturn added in v2.15.0

func (_c *Checker_IsReady_Call) RunAndReturn(run func() (bool, map[string]error)) *Checker_IsReady_Call

type Checker_Register_Call added in v2.15.0

type Checker_Register_Call struct {
	*mock.Call
}

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

func (*Checker_Register_Call) Return added in v2.15.0

func (*Checker_Register_Call) Run added in v2.15.0

func (*Checker_Register_Call) RunAndReturn added in v2.15.0

type Checker_Start_Call added in v2.15.0

type Checker_Start_Call struct {
	*mock.Call
}

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

func (*Checker_Start_Call) Return added in v2.15.0

func (_c *Checker_Start_Call) Return(_a0 error) *Checker_Start_Call

func (*Checker_Start_Call) Run added in v2.15.0

func (_c *Checker_Start_Call) Run(run func()) *Checker_Start_Call

func (*Checker_Start_Call) RunAndReturn added in v2.15.0

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

type Checker_Unregister_Call added in v2.15.0

type Checker_Unregister_Call struct {
	*mock.Call
}

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

func (*Checker_Unregister_Call) Return added in v2.15.0

func (*Checker_Unregister_Call) Run added in v2.15.0

func (_c *Checker_Unregister_Call) Run(run func(name string)) *Checker_Unregister_Call

func (*Checker_Unregister_Call) RunAndReturn added in v2.15.0

func (_c *Checker_Unregister_Call) RunAndReturn(run func(string) error) *Checker_Unregister_Call

Jump to

Keyboard shortcuts

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