mock_assignment

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 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) Get

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

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_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) 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

type MockWatcher_Get_Call struct {
	*mock.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 (*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

type MockWatcher_Watch_Call

type MockWatcher_Watch_Call struct {
	*mock.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 (*MockWatcher_Watch_Call) Run

func (*MockWatcher_Watch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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