mock_balancer

package
v0.10.3-0...-8fe6c1c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 MockSubConn

type MockSubConn struct {
	mock.Mock
}

MockSubConn is an autogenerated mock type for the SubConn type

func NewMockSubConn

func NewMockSubConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSubConn

NewMockSubConn creates a new instance of MockSubConn. 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 (*MockSubConn) Connect

func (_m *MockSubConn) Connect()

Connect provides a mock function with given fields:

func (*MockSubConn) EXPECT

func (_m *MockSubConn) EXPECT() *MockSubConn_Expecter

func (*MockSubConn) GetOrBuildProducer

func (_m *MockSubConn) GetOrBuildProducer(_a0 balancer.ProducerBuilder) (balancer.Producer, func())

GetOrBuildProducer provides a mock function with given fields: _a0

func (*MockSubConn) Shutdown

func (_m *MockSubConn) Shutdown()

Shutdown provides a mock function with given fields:

func (*MockSubConn) UpdateAddresses

func (_m *MockSubConn) UpdateAddresses(_a0 []resolver.Address)

UpdateAddresses provides a mock function with given fields: _a0

type MockSubConn_Connect_Call

type MockSubConn_Connect_Call struct {
	*mock.Call
}

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

func (*MockSubConn_Connect_Call) Return

func (*MockSubConn_Connect_Call) Run

func (*MockSubConn_Connect_Call) RunAndReturn

func (_c *MockSubConn_Connect_Call) RunAndReturn(run func()) *MockSubConn_Connect_Call

type MockSubConn_Expecter

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

func (*MockSubConn_Expecter) Connect

Connect is a helper method to define mock.On call

func (*MockSubConn_Expecter) GetOrBuildProducer

func (_e *MockSubConn_Expecter) GetOrBuildProducer(_a0 interface{}) *MockSubConn_GetOrBuildProducer_Call

GetOrBuildProducer is a helper method to define mock.On call

  • _a0 balancer.ProducerBuilder

func (*MockSubConn_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*MockSubConn_Expecter) UpdateAddresses

func (_e *MockSubConn_Expecter) UpdateAddresses(_a0 interface{}) *MockSubConn_UpdateAddresses_Call

UpdateAddresses is a helper method to define mock.On call

  • _a0 []resolver.Address

type MockSubConn_GetOrBuildProducer_Call

type MockSubConn_GetOrBuildProducer_Call struct {
	*mock.Call
}

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

func (*MockSubConn_GetOrBuildProducer_Call) Return

func (*MockSubConn_GetOrBuildProducer_Call) Run

func (*MockSubConn_GetOrBuildProducer_Call) RunAndReturn

type MockSubConn_Shutdown_Call

type MockSubConn_Shutdown_Call struct {
	*mock.Call
}

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

func (*MockSubConn_Shutdown_Call) Return

func (*MockSubConn_Shutdown_Call) Run

func (*MockSubConn_Shutdown_Call) RunAndReturn

func (_c *MockSubConn_Shutdown_Call) RunAndReturn(run func()) *MockSubConn_Shutdown_Call

type MockSubConn_UpdateAddresses_Call

type MockSubConn_UpdateAddresses_Call struct {
	*mock.Call
}

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

func (*MockSubConn_UpdateAddresses_Call) Return

func (*MockSubConn_UpdateAddresses_Call) Run

func (*MockSubConn_UpdateAddresses_Call) RunAndReturn

Jump to

Keyboard shortcuts

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