mock_manager

package
v0.10.3-0...-843c1f5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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 MockManagerClient

type MockManagerClient struct {
	mock.Mock
}

MockManagerClient is an autogenerated mock type for the ManagerClient type

func NewMockManagerClient

func NewMockManagerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockManagerClient

NewMockManagerClient creates a new instance of MockManagerClient. 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 (*MockManagerClient) Assign

Assign provides a mock function with given fields: ctx, pchannel

func (*MockManagerClient) Close

func (_m *MockManagerClient) Close()

Close provides a mock function with given fields:

func (*MockManagerClient) CollectAllStatus

func (_m *MockManagerClient) CollectAllStatus(ctx context.Context) (map[int64]*types.StreamingNodeStatus, error)

CollectAllStatus provides a mock function with given fields: ctx

func (*MockManagerClient) EXPECT

func (*MockManagerClient) Remove

Remove provides a mock function with given fields: ctx, pchannel

func (*MockManagerClient) WatchNodeChanged

func (_m *MockManagerClient) WatchNodeChanged(ctx context.Context) (<-chan struct{}, error)

WatchNodeChanged provides a mock function with given fields: ctx

type MockManagerClient_Assign_Call

type MockManagerClient_Assign_Call struct {
	*mock.Call
}

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

func (*MockManagerClient_Assign_Call) Return

func (*MockManagerClient_Assign_Call) Run

func (*MockManagerClient_Assign_Call) RunAndReturn

type MockManagerClient_Close_Call

type MockManagerClient_Close_Call struct {
	*mock.Call
}

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

func (*MockManagerClient_Close_Call) Return

func (*MockManagerClient_Close_Call) Run

func (*MockManagerClient_Close_Call) RunAndReturn

func (_c *MockManagerClient_Close_Call) RunAndReturn(run func()) *MockManagerClient_Close_Call

type MockManagerClient_CollectAllStatus_Call

type MockManagerClient_CollectAllStatus_Call struct {
	*mock.Call
}

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

func (*MockManagerClient_CollectAllStatus_Call) Return

func (*MockManagerClient_CollectAllStatus_Call) Run

func (*MockManagerClient_CollectAllStatus_Call) RunAndReturn

type MockManagerClient_Expecter

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

func (*MockManagerClient_Expecter) Assign

func (_e *MockManagerClient_Expecter) Assign(ctx interface{}, pchannel interface{}) *MockManagerClient_Assign_Call

Assign is a helper method to define mock.On call

  • ctx context.Context
  • pchannel types.PChannelInfoAssigned

func (*MockManagerClient_Expecter) Close

Close is a helper method to define mock.On call

func (*MockManagerClient_Expecter) CollectAllStatus

func (_e *MockManagerClient_Expecter) CollectAllStatus(ctx interface{}) *MockManagerClient_CollectAllStatus_Call

CollectAllStatus is a helper method to define mock.On call

  • ctx context.Context

func (*MockManagerClient_Expecter) Remove

func (_e *MockManagerClient_Expecter) Remove(ctx interface{}, pchannel interface{}) *MockManagerClient_Remove_Call

Remove is a helper method to define mock.On call

  • ctx context.Context
  • pchannel types.PChannelInfoAssigned

func (*MockManagerClient_Expecter) WatchNodeChanged

func (_e *MockManagerClient_Expecter) WatchNodeChanged(ctx interface{}) *MockManagerClient_WatchNodeChanged_Call

WatchNodeChanged is a helper method to define mock.On call

  • ctx context.Context

type MockManagerClient_Remove_Call

type MockManagerClient_Remove_Call struct {
	*mock.Call
}

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

func (*MockManagerClient_Remove_Call) Return

func (*MockManagerClient_Remove_Call) Run

func (*MockManagerClient_Remove_Call) RunAndReturn

type MockManagerClient_WatchNodeChanged_Call

type MockManagerClient_WatchNodeChanged_Call struct {
	*mock.Call
}

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

func (*MockManagerClient_WatchNodeChanged_Call) Return

func (*MockManagerClient_WatchNodeChanged_Call) Run

func (*MockManagerClient_WatchNodeChanged_Call) RunAndReturn

Jump to

Keyboard shortcuts

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