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

mocks

package
v3.3.17 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

type Broadcaster struct {
	mock.Mock
}

Broadcaster is an autogenerated mock type for the Broadcaster type

func NewBroadcaster

func NewBroadcaster(t interface {
	mock.TestingT
	Cleanup(func())
}) *Broadcaster

NewBroadcaster creates a new instance of Broadcaster. 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 (*Broadcaster) EXPECT added in v3.1.0

func (_m *Broadcaster) EXPECT() *Broadcaster_Expecter

func (*Broadcaster) OnAdd

func (_mock *Broadcaster) OnAdd(v any, b bool)

OnAdd provides a mock function for the type Broadcaster

func (*Broadcaster) OnDelete

func (_mock *Broadcaster) OnDelete(v any)

OnDelete provides a mock function for the type Broadcaster

func (*Broadcaster) OnUpdate

func (_mock *Broadcaster) OnUpdate(v any, v1 any)

OnUpdate provides a mock function for the type Broadcaster

func (*Broadcaster) Subscribe

func (_mock *Broadcaster) Subscribe(ch chan *v1alpha1.ApplicationWatchEvent, filters ...func(event *v1alpha1.ApplicationWatchEvent) bool) func()

Subscribe provides a mock function for the type Broadcaster

type Broadcaster_Expecter added in v3.1.0

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

func (*Broadcaster_Expecter) OnAdd added in v3.1.0

func (_e *Broadcaster_Expecter) OnAdd(v interface{}, b interface{}) *Broadcaster_OnAdd_Call

OnAdd is a helper method to define mock.On call

  • v any
  • b bool

func (*Broadcaster_Expecter) OnDelete added in v3.1.0

func (_e *Broadcaster_Expecter) OnDelete(v interface{}) *Broadcaster_OnDelete_Call

OnDelete is a helper method to define mock.On call

  • v any

func (*Broadcaster_Expecter) OnUpdate added in v3.1.0

func (_e *Broadcaster_Expecter) OnUpdate(v interface{}, v1 interface{}) *Broadcaster_OnUpdate_Call

OnUpdate is a helper method to define mock.On call

  • v any
  • v1 any

func (*Broadcaster_Expecter) Subscribe added in v3.1.0

func (_e *Broadcaster_Expecter) Subscribe(ch interface{}, filters ...interface{}) *Broadcaster_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • ch chan *v1alpha1.ApplicationWatchEvent
  • filters ...func(event *v1alpha1.ApplicationWatchEvent) bool

type Broadcaster_OnAdd_Call added in v3.1.0

type Broadcaster_OnAdd_Call struct {
	*mock.Call
}

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

func (*Broadcaster_OnAdd_Call) Return added in v3.1.0

func (*Broadcaster_OnAdd_Call) Run added in v3.1.0

func (_c *Broadcaster_OnAdd_Call) Run(run func(v any, b bool)) *Broadcaster_OnAdd_Call

func (*Broadcaster_OnAdd_Call) RunAndReturn added in v3.1.0

func (_c *Broadcaster_OnAdd_Call) RunAndReturn(run func(v any, b bool)) *Broadcaster_OnAdd_Call

type Broadcaster_OnDelete_Call added in v3.1.0

type Broadcaster_OnDelete_Call struct {
	*mock.Call
}

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

func (*Broadcaster_OnDelete_Call) Return added in v3.1.0

func (*Broadcaster_OnDelete_Call) Run added in v3.1.0

func (*Broadcaster_OnDelete_Call) RunAndReturn added in v3.1.0

func (_c *Broadcaster_OnDelete_Call) RunAndReturn(run func(v any)) *Broadcaster_OnDelete_Call

type Broadcaster_OnUpdate_Call added in v3.1.0

type Broadcaster_OnUpdate_Call struct {
	*mock.Call
}

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

func (*Broadcaster_OnUpdate_Call) Return added in v3.1.0

func (*Broadcaster_OnUpdate_Call) Run added in v3.1.0

func (_c *Broadcaster_OnUpdate_Call) Run(run func(v any, v1 any)) *Broadcaster_OnUpdate_Call

func (*Broadcaster_OnUpdate_Call) RunAndReturn added in v3.1.0

func (_c *Broadcaster_OnUpdate_Call) RunAndReturn(run func(v any, v1 any)) *Broadcaster_OnUpdate_Call

type Broadcaster_Subscribe_Call added in v3.1.0

type Broadcaster_Subscribe_Call struct {
	*mock.Call
}

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

func (*Broadcaster_Subscribe_Call) Return added in v3.1.0

func (*Broadcaster_Subscribe_Call) Run added in v3.1.0

func (*Broadcaster_Subscribe_Call) RunAndReturn added in v3.1.0

func (_c *Broadcaster_Subscribe_Call) RunAndReturn(run func(ch chan *v1alpha1.ApplicationWatchEvent, filters ...func(event *v1alpha1.ApplicationWatchEvent) bool) func()) *Broadcaster_Subscribe_Call

Jump to

Keyboard shortcuts

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