mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	mock.Mock
}

Component is an autogenerated mock type for the Component type

func NewComponent added in v0.26.1

func NewComponent(t interface {
	mock.TestingT
	Cleanup(func())
}) *Component

NewComponent creates a new instance of Component. 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 (*Component) Done

func (_mock *Component) Done() <-chan struct{}

Done provides a mock function for the type Component

func (*Component) EXPECT added in v0.46.0

func (_m *Component) EXPECT() *Component_Expecter

func (*Component) Ready

func (_mock *Component) Ready() <-chan struct{}

Ready provides a mock function for the type Component

func (*Component) Start

func (_mock *Component) Start(signalerContext irrecoverable.SignalerContext)

Start provides a mock function for the type Component

type ComponentManagerBuilder

type ComponentManagerBuilder struct {
	mock.Mock
}

ComponentManagerBuilder is an autogenerated mock type for the ComponentManagerBuilder type

func NewComponentManagerBuilder added in v0.26.1

func NewComponentManagerBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *ComponentManagerBuilder

NewComponentManagerBuilder creates a new instance of ComponentManagerBuilder. 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 (*ComponentManagerBuilder) AddWorker

AddWorker provides a mock function for the type ComponentManagerBuilder

func (*ComponentManagerBuilder) Build

Build provides a mock function for the type ComponentManagerBuilder

func (*ComponentManagerBuilder) EXPECT added in v0.46.0

type ComponentManagerBuilder_AddWorker_Call added in v0.46.0

type ComponentManagerBuilder_AddWorker_Call struct {
	*mock.Call
}

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

func (*ComponentManagerBuilder_AddWorker_Call) Return added in v0.46.0

func (*ComponentManagerBuilder_AddWorker_Call) Run added in v0.46.0

func (*ComponentManagerBuilder_AddWorker_Call) RunAndReturn added in v0.46.0

type ComponentManagerBuilder_Build_Call added in v0.46.0

type ComponentManagerBuilder_Build_Call struct {
	*mock.Call
}

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

func (*ComponentManagerBuilder_Build_Call) Return added in v0.46.0

func (*ComponentManagerBuilder_Build_Call) Run added in v0.46.0

func (*ComponentManagerBuilder_Build_Call) RunAndReturn added in v0.46.0

type ComponentManagerBuilder_Expecter added in v0.46.0

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

func (*ComponentManagerBuilder_Expecter) AddWorker added in v0.46.0

func (_e *ComponentManagerBuilder_Expecter) AddWorker(componentWorker interface{}) *ComponentManagerBuilder_AddWorker_Call

AddWorker is a helper method to define mock.On call

  • componentWorker component.ComponentWorker

func (*ComponentManagerBuilder_Expecter) Build added in v0.46.0

Build is a helper method to define mock.On call

type Component_Done_Call added in v0.46.0

type Component_Done_Call struct {
	*mock.Call
}

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

func (*Component_Done_Call) Return added in v0.46.0

func (_c *Component_Done_Call) Return(valCh <-chan struct{}) *Component_Done_Call

func (*Component_Done_Call) Run added in v0.46.0

func (_c *Component_Done_Call) Run(run func()) *Component_Done_Call

func (*Component_Done_Call) RunAndReturn added in v0.46.0

func (_c *Component_Done_Call) RunAndReturn(run func() <-chan struct{}) *Component_Done_Call

type Component_Expecter added in v0.46.0

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

func (*Component_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*Component_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*Component_Expecter) Start added in v0.46.0

func (_e *Component_Expecter) Start(signalerContext interface{}) *Component_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type Component_Ready_Call added in v0.46.0

type Component_Ready_Call struct {
	*mock.Call
}

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

func (*Component_Ready_Call) Return added in v0.46.0

func (_c *Component_Ready_Call) Return(valCh <-chan struct{}) *Component_Ready_Call

func (*Component_Ready_Call) Run added in v0.46.0

func (_c *Component_Ready_Call) Run(run func()) *Component_Ready_Call

func (*Component_Ready_Call) RunAndReturn added in v0.46.0

func (_c *Component_Ready_Call) RunAndReturn(run func() <-chan struct{}) *Component_Ready_Call

type Component_Start_Call added in v0.46.0

type Component_Start_Call struct {
	*mock.Call
}

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

func (*Component_Start_Call) Return added in v0.46.0

func (*Component_Start_Call) Run added in v0.46.0

func (_c *Component_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *Component_Start_Call

func (*Component_Start_Call) RunAndReturn added in v0.46.0

func (_c *Component_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *Component_Start_Call

Jump to

Keyboard shortcuts

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