mock_broadcast

package
v0.10.3-0...-0f4d3ef Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.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 MockWatcher

type MockWatcher struct {
	mock.Mock
}

MockWatcher is an autogenerated mock type for the Watcher type

func NewMockWatcher

func NewMockWatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWatcher

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

func (_m *MockWatcher) Close()

Close provides a mock function with given fields:

func (*MockWatcher) EXPECT

func (_m *MockWatcher) EXPECT() *MockWatcher_Expecter

func (*MockWatcher) EventChan

func (_m *MockWatcher) EventChan() <-chan *messagespb.BroadcastEvent

EventChan provides a mock function with given fields:

func (*MockWatcher) ObserveResourceKeyEvent

func (_m *MockWatcher) ObserveResourceKeyEvent(ctx context.Context, ev *messagespb.BroadcastEvent) error

ObserveResourceKeyEvent provides a mock function with given fields: ctx, ev

type MockWatcher_Close_Call

type MockWatcher_Close_Call struct {
	*mock.Call
}

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

func (*MockWatcher_Close_Call) Return

func (*MockWatcher_Close_Call) Run

func (_c *MockWatcher_Close_Call) Run(run func()) *MockWatcher_Close_Call

func (*MockWatcher_Close_Call) RunAndReturn

func (_c *MockWatcher_Close_Call) RunAndReturn(run func()) *MockWatcher_Close_Call

type MockWatcher_EventChan_Call

type MockWatcher_EventChan_Call struct {
	*mock.Call
}

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

func (*MockWatcher_EventChan_Call) Return

func (*MockWatcher_EventChan_Call) Run

func (*MockWatcher_EventChan_Call) RunAndReturn

type MockWatcher_Expecter

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

func (*MockWatcher_Expecter) Close

Close is a helper method to define mock.On call

func (*MockWatcher_Expecter) EventChan

EventChan is a helper method to define mock.On call

func (*MockWatcher_Expecter) ObserveResourceKeyEvent

func (_e *MockWatcher_Expecter) ObserveResourceKeyEvent(ctx interface{}, ev interface{}) *MockWatcher_ObserveResourceKeyEvent_Call

ObserveResourceKeyEvent is a helper method to define mock.On call

  • ctx context.Context
  • ev *messagespb.BroadcastEvent

type MockWatcher_ObserveResourceKeyEvent_Call

type MockWatcher_ObserveResourceKeyEvent_Call struct {
	*mock.Call
}

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

func (*MockWatcher_ObserveResourceKeyEvent_Call) Return

func (*MockWatcher_ObserveResourceKeyEvent_Call) Run

func (*MockWatcher_ObserveResourceKeyEvent_Call) RunAndReturn

Jump to

Keyboard shortcuts

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