Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.43.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 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 (_m *Component) Done() <-chan struct{}

Done provides a mock function with no fields

func (*Component) Ready

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

Ready provides a mock function with no fields

func (*Component) Start

func (_m *Component) Start(_a0 irrecoverable.SignalerContext)

Start provides a mock function with given fields: _a0

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 with given fields: _a0

func (*ComponentManagerBuilder) Build

Build provides a mock function with no fields

Jump to

Keyboard shortcuts

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