Documentation ¶
Index ¶
- type MockSubConn
- type MockSubConn_Connect_Call
- type MockSubConn_Expecter
- func (_e *MockSubConn_Expecter) Connect() *MockSubConn_Connect_Call
- func (_e *MockSubConn_Expecter) GetOrBuildProducer(_a0 interface{}) *MockSubConn_GetOrBuildProducer_Call
- func (_e *MockSubConn_Expecter) Shutdown() *MockSubConn_Shutdown_Call
- func (_e *MockSubConn_Expecter) UpdateAddresses(_a0 interface{}) *MockSubConn_UpdateAddresses_Call
- type MockSubConn_GetOrBuildProducer_Call
- func (_c *MockSubConn_GetOrBuildProducer_Call) Return(p balancer.Producer, close func()) *MockSubConn_GetOrBuildProducer_Call
- func (_c *MockSubConn_GetOrBuildProducer_Call) Run(run func(_a0 balancer.ProducerBuilder)) *MockSubConn_GetOrBuildProducer_Call
- func (_c *MockSubConn_GetOrBuildProducer_Call) RunAndReturn(run func(balancer.ProducerBuilder) (balancer.Producer, func())) *MockSubConn_GetOrBuildProducer_Call
- type MockSubConn_Shutdown_Call
- type MockSubConn_UpdateAddresses_Call
- func (_c *MockSubConn_UpdateAddresses_Call) Return() *MockSubConn_UpdateAddresses_Call
- func (_c *MockSubConn_UpdateAddresses_Call) Run(run func(_a0 []resolver.Address)) *MockSubConn_UpdateAddresses_Call
- func (_c *MockSubConn_UpdateAddresses_Call) RunAndReturn(run func([]resolver.Address)) *MockSubConn_UpdateAddresses_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSubConn ¶
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 ¶
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 (_c *MockSubConn_Connect_Call) Return() *MockSubConn_Connect_Call
func (*MockSubConn_Connect_Call) Run ¶
func (_c *MockSubConn_Connect_Call) Run(run func()) *MockSubConn_Connect_Call
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 ¶
func (_e *MockSubConn_Expecter) Connect() *MockSubConn_Connect_Call
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 ¶
func (_e *MockSubConn_Expecter) Shutdown() *MockSubConn_Shutdown_Call
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 ¶
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 (_c *MockSubConn_GetOrBuildProducer_Call) Return(p balancer.Producer, close func()) *MockSubConn_GetOrBuildProducer_Call
func (*MockSubConn_GetOrBuildProducer_Call) Run ¶
func (_c *MockSubConn_GetOrBuildProducer_Call) Run(run func(_a0 balancer.ProducerBuilder)) *MockSubConn_GetOrBuildProducer_Call
func (*MockSubConn_GetOrBuildProducer_Call) RunAndReturn ¶
func (_c *MockSubConn_GetOrBuildProducer_Call) RunAndReturn(run func(balancer.ProducerBuilder) (balancer.Producer, func())) *MockSubConn_GetOrBuildProducer_Call
type MockSubConn_Shutdown_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 (_c *MockSubConn_Shutdown_Call) Return() *MockSubConn_Shutdown_Call
func (*MockSubConn_Shutdown_Call) Run ¶
func (_c *MockSubConn_Shutdown_Call) Run(run func()) *MockSubConn_Shutdown_Call
func (*MockSubConn_Shutdown_Call) RunAndReturn ¶
func (_c *MockSubConn_Shutdown_Call) RunAndReturn(run func()) *MockSubConn_Shutdown_Call
type MockSubConn_UpdateAddresses_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 (_c *MockSubConn_UpdateAddresses_Call) Return() *MockSubConn_UpdateAddresses_Call
func (*MockSubConn_UpdateAddresses_Call) Run ¶
func (_c *MockSubConn_UpdateAddresses_Call) Run(run func(_a0 []resolver.Address)) *MockSubConn_UpdateAddresses_Call
func (*MockSubConn_UpdateAddresses_Call) RunAndReturn ¶
func (_c *MockSubConn_UpdateAddresses_Call) RunAndReturn(run func([]resolver.Address)) *MockSubConn_UpdateAddresses_Call