Documentation
¶
Index ¶
- type MockWatcher
- type MockWatcher_Close_Call
- type MockWatcher_EventChan_Call
- func (_c *MockWatcher_EventChan_Call) Return(_a0 <-chan *messagespb.BroadcastEvent) *MockWatcher_EventChan_Call
- func (_c *MockWatcher_EventChan_Call) Run(run func()) *MockWatcher_EventChan_Call
- func (_c *MockWatcher_EventChan_Call) RunAndReturn(run func() <-chan *messagespb.BroadcastEvent) *MockWatcher_EventChan_Call
- type MockWatcher_Expecter
- type MockWatcher_ObserveResourceKeyEvent_Call
- func (_c *MockWatcher_ObserveResourceKeyEvent_Call) Return(_a0 error) *MockWatcher_ObserveResourceKeyEvent_Call
- func (_c *MockWatcher_ObserveResourceKeyEvent_Call) Run(run func(ctx context.Context, ev *messagespb.BroadcastEvent)) *MockWatcher_ObserveResourceKeyEvent_Call
- func (_c *MockWatcher_ObserveResourceKeyEvent_Call) RunAndReturn(run func(context.Context, *messagespb.BroadcastEvent) error) *MockWatcher_ObserveResourceKeyEvent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWatcher ¶
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 ¶
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 (_c *MockWatcher_Close_Call) Return() *MockWatcher_Close_Call
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 ¶
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 (_c *MockWatcher_EventChan_Call) Return(_a0 <-chan *messagespb.BroadcastEvent) *MockWatcher_EventChan_Call
func (*MockWatcher_EventChan_Call) Run ¶
func (_c *MockWatcher_EventChan_Call) Run(run func()) *MockWatcher_EventChan_Call
func (*MockWatcher_EventChan_Call) RunAndReturn ¶
func (_c *MockWatcher_EventChan_Call) RunAndReturn(run func() <-chan *messagespb.BroadcastEvent) *MockWatcher_EventChan_Call
type MockWatcher_Expecter ¶
type MockWatcher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWatcher_Expecter) Close ¶
func (_e *MockWatcher_Expecter) Close() *MockWatcher_Close_Call
Close is a helper method to define mock.On call
func (*MockWatcher_Expecter) EventChan ¶
func (_e *MockWatcher_Expecter) EventChan() *MockWatcher_EventChan_Call
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 ¶
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 (_c *MockWatcher_ObserveResourceKeyEvent_Call) Return(_a0 error) *MockWatcher_ObserveResourceKeyEvent_Call
func (*MockWatcher_ObserveResourceKeyEvent_Call) Run ¶
func (_c *MockWatcher_ObserveResourceKeyEvent_Call) Run(run func(ctx context.Context, ev *messagespb.BroadcastEvent)) *MockWatcher_ObserveResourceKeyEvent_Call
func (*MockWatcher_ObserveResourceKeyEvent_Call) RunAndReturn ¶
func (_c *MockWatcher_ObserveResourceKeyEvent_Call) RunAndReturn(run func(context.Context, *messagespb.BroadcastEvent) error) *MockWatcher_ObserveResourceKeyEvent_Call