Documentation
¶
Index ¶
- type MockWatcher
- type MockWatcher_Close_Call
- type MockWatcher_Expecter
- type MockWatcher_Get_Call
- func (_c *MockWatcher_Get_Call) Return(_a0 *types.PChannelInfoAssigned) *MockWatcher_Get_Call
- func (_c *MockWatcher_Get_Call) Run(run func(ctx context.Context, channel string)) *MockWatcher_Get_Call
- func (_c *MockWatcher_Get_Call) RunAndReturn(run func(context.Context, string) *types.PChannelInfoAssigned) *MockWatcher_Get_Call
- type MockWatcher_Watch_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) Get ¶
func (_m *MockWatcher) Get(ctx context.Context, channel string) *types.PChannelInfoAssigned
Get provides a mock function with given fields: ctx, channel
func (*MockWatcher) Watch ¶
func (_m *MockWatcher) Watch(ctx context.Context, channel string, previous *types.PChannelInfoAssigned) error
Watch provides a mock function with given fields: ctx, channel, previous
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_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) Get ¶
func (_e *MockWatcher_Expecter) Get(ctx interface{}, channel interface{}) *MockWatcher_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- channel string
func (*MockWatcher_Expecter) Watch ¶
func (_e *MockWatcher_Expecter) Watch(ctx interface{}, channel interface{}, previous interface{}) *MockWatcher_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- channel string
- previous *types.PChannelInfoAssigned
type MockWatcher_Get_Call ¶
MockWatcher_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockWatcher_Get_Call) Return ¶
func (_c *MockWatcher_Get_Call) Return(_a0 *types.PChannelInfoAssigned) *MockWatcher_Get_Call
func (*MockWatcher_Get_Call) Run ¶
func (_c *MockWatcher_Get_Call) Run(run func(ctx context.Context, channel string)) *MockWatcher_Get_Call
func (*MockWatcher_Get_Call) RunAndReturn ¶
func (_c *MockWatcher_Get_Call) RunAndReturn(run func(context.Context, string) *types.PChannelInfoAssigned) *MockWatcher_Get_Call
type MockWatcher_Watch_Call ¶
MockWatcher_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*MockWatcher_Watch_Call) Return ¶
func (_c *MockWatcher_Watch_Call) Return(_a0 error) *MockWatcher_Watch_Call
func (*MockWatcher_Watch_Call) Run ¶
func (_c *MockWatcher_Watch_Call) Run(run func(ctx context.Context, channel string, previous *types.PChannelInfoAssigned)) *MockWatcher_Watch_Call
func (*MockWatcher_Watch_Call) RunAndReturn ¶
func (_c *MockWatcher_Watch_Call) RunAndReturn(run func(context.Context, string, *types.PChannelInfoAssigned) error) *MockWatcher_Watch_Call