mock_balancer

package
v0.10.3-0...-930112e Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBalancer

type MockBalancer struct {
	mock.Mock
}

MockBalancer is an autogenerated mock type for the Balancer type

func NewMockBalancer

func NewMockBalancer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBalancer

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

func (_m *MockBalancer) Close()

Close provides a mock function with given fields:

func (*MockBalancer) EXPECT

func (_m *MockBalancer) EXPECT() *MockBalancer_Expecter

func (*MockBalancer) MarkAsUnavailable

func (_m *MockBalancer) MarkAsUnavailable(ctx context.Context, pChannels []types.PChannelInfo) error

MarkAsUnavailable provides a mock function with given fields: ctx, pChannels

func (*MockBalancer) Trigger

func (_m *MockBalancer) Trigger(ctx context.Context) error

Trigger provides a mock function with given fields: ctx

func (*MockBalancer) WatchChannelAssignments

func (_m *MockBalancer) WatchChannelAssignments(ctx context.Context, cb func(typeutil.VersionInt64Pair, []types.PChannelInfoAssigned) error) error

WatchChannelAssignments provides a mock function with given fields: ctx, cb

type MockBalancer_Close_Call

type MockBalancer_Close_Call struct {
	*mock.Call
}

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

func (*MockBalancer_Close_Call) Return

func (*MockBalancer_Close_Call) Run

func (_c *MockBalancer_Close_Call) Run(run func()) *MockBalancer_Close_Call

func (*MockBalancer_Close_Call) RunAndReturn

func (_c *MockBalancer_Close_Call) RunAndReturn(run func()) *MockBalancer_Close_Call

type MockBalancer_Expecter

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

func (*MockBalancer_Expecter) Close

Close is a helper method to define mock.On call

func (*MockBalancer_Expecter) MarkAsUnavailable

func (_e *MockBalancer_Expecter) MarkAsUnavailable(ctx interface{}, pChannels interface{}) *MockBalancer_MarkAsUnavailable_Call

MarkAsUnavailable is a helper method to define mock.On call

  • ctx context.Context
  • pChannels []types.PChannelInfo

func (*MockBalancer_Expecter) Trigger

func (_e *MockBalancer_Expecter) Trigger(ctx interface{}) *MockBalancer_Trigger_Call

Trigger is a helper method to define mock.On call

  • ctx context.Context

func (*MockBalancer_Expecter) WatchChannelAssignments

func (_e *MockBalancer_Expecter) WatchChannelAssignments(ctx interface{}, cb interface{}) *MockBalancer_WatchChannelAssignments_Call

WatchChannelAssignments is a helper method to define mock.On call

  • ctx context.Context
  • cb func(typeutil.VersionInt64Pair , []types.PChannelInfoAssigned) error

type MockBalancer_MarkAsUnavailable_Call

type MockBalancer_MarkAsUnavailable_Call struct {
	*mock.Call
}

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

func (*MockBalancer_MarkAsUnavailable_Call) Return

func (*MockBalancer_MarkAsUnavailable_Call) Run

func (*MockBalancer_MarkAsUnavailable_Call) RunAndReturn

type MockBalancer_Trigger_Call

type MockBalancer_Trigger_Call struct {
	*mock.Call
}

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

func (*MockBalancer_Trigger_Call) Return

func (*MockBalancer_Trigger_Call) Run

func (*MockBalancer_Trigger_Call) RunAndReturn

type MockBalancer_WatchChannelAssignments_Call

type MockBalancer_WatchChannelAssignments_Call struct {
	*mock.Call
}

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

func (*MockBalancer_WatchChannelAssignments_Call) Return

func (*MockBalancer_WatchChannelAssignments_Call) Run

Jump to

Keyboard shortcuts

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