Documentation ¶
Index ¶
- type MockClientConn
- func (_m *MockClientConn) EXPECT() *MockClientConn_Expecter
- func (_m *MockClientConn) NewAddress(addresses []resolver.Address)
- func (_m *MockClientConn) ParseServiceConfig(serviceConfigJSON string) *serviceconfig.ParseResult
- func (_m *MockClientConn) ReportError(_a0 error)
- func (_m *MockClientConn) UpdateState(_a0 resolver.State) error
- type MockClientConn_Expecter
- func (_e *MockClientConn_Expecter) NewAddress(addresses interface{}) *MockClientConn_NewAddress_Call
- func (_e *MockClientConn_Expecter) ParseServiceConfig(serviceConfigJSON interface{}) *MockClientConn_ParseServiceConfig_Call
- func (_e *MockClientConn_Expecter) ReportError(_a0 interface{}) *MockClientConn_ReportError_Call
- func (_e *MockClientConn_Expecter) UpdateState(_a0 interface{}) *MockClientConn_UpdateState_Call
- type MockClientConn_NewAddress_Call
- func (_c *MockClientConn_NewAddress_Call) Return() *MockClientConn_NewAddress_Call
- func (_c *MockClientConn_NewAddress_Call) Run(run func(addresses []resolver.Address)) *MockClientConn_NewAddress_Call
- func (_c *MockClientConn_NewAddress_Call) RunAndReturn(run func([]resolver.Address)) *MockClientConn_NewAddress_Call
- type MockClientConn_ParseServiceConfig_Call
- func (_c *MockClientConn_ParseServiceConfig_Call) Return(_a0 *serviceconfig.ParseResult) *MockClientConn_ParseServiceConfig_Call
- func (_c *MockClientConn_ParseServiceConfig_Call) Run(run func(serviceConfigJSON string)) *MockClientConn_ParseServiceConfig_Call
- func (_c *MockClientConn_ParseServiceConfig_Call) RunAndReturn(run func(string) *serviceconfig.ParseResult) *MockClientConn_ParseServiceConfig_Call
- type MockClientConn_ReportError_Call
- type MockClientConn_UpdateState_Call
- func (_c *MockClientConn_UpdateState_Call) Return(_a0 error) *MockClientConn_UpdateState_Call
- func (_c *MockClientConn_UpdateState_Call) Run(run func(_a0 resolver.State)) *MockClientConn_UpdateState_Call
- func (_c *MockClientConn_UpdateState_Call) RunAndReturn(run func(resolver.State) error) *MockClientConn_UpdateState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientConn ¶
MockClientConn is an autogenerated mock type for the ClientConn type
func NewMockClientConn ¶
func NewMockClientConn(t interface { mock.TestingT Cleanup(func()) }) *MockClientConn
NewMockClientConn creates a new instance of MockClientConn. 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 (*MockClientConn) EXPECT ¶
func (_m *MockClientConn) EXPECT() *MockClientConn_Expecter
func (*MockClientConn) NewAddress ¶
func (_m *MockClientConn) NewAddress(addresses []resolver.Address)
NewAddress provides a mock function with given fields: addresses
func (*MockClientConn) ParseServiceConfig ¶
func (_m *MockClientConn) ParseServiceConfig(serviceConfigJSON string) *serviceconfig.ParseResult
ParseServiceConfig provides a mock function with given fields: serviceConfigJSON
func (*MockClientConn) ReportError ¶
func (_m *MockClientConn) ReportError(_a0 error)
ReportError provides a mock function with given fields: _a0
func (*MockClientConn) UpdateState ¶
func (_m *MockClientConn) UpdateState(_a0 resolver.State) error
UpdateState provides a mock function with given fields: _a0
type MockClientConn_Expecter ¶
type MockClientConn_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientConn_Expecter) NewAddress ¶
func (_e *MockClientConn_Expecter) NewAddress(addresses interface{}) *MockClientConn_NewAddress_Call
NewAddress is a helper method to define mock.On call
- addresses []resolver.Address
func (*MockClientConn_Expecter) ParseServiceConfig ¶
func (_e *MockClientConn_Expecter) ParseServiceConfig(serviceConfigJSON interface{}) *MockClientConn_ParseServiceConfig_Call
ParseServiceConfig is a helper method to define mock.On call
- serviceConfigJSON string
func (*MockClientConn_Expecter) ReportError ¶
func (_e *MockClientConn_Expecter) ReportError(_a0 interface{}) *MockClientConn_ReportError_Call
ReportError is a helper method to define mock.On call
- _a0 error
func (*MockClientConn_Expecter) UpdateState ¶
func (_e *MockClientConn_Expecter) UpdateState(_a0 interface{}) *MockClientConn_UpdateState_Call
UpdateState is a helper method to define mock.On call
- _a0 resolver.State
type MockClientConn_NewAddress_Call ¶
MockClientConn_NewAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAddress'
func (*MockClientConn_NewAddress_Call) Return ¶
func (_c *MockClientConn_NewAddress_Call) Return() *MockClientConn_NewAddress_Call
func (*MockClientConn_NewAddress_Call) Run ¶
func (_c *MockClientConn_NewAddress_Call) Run(run func(addresses []resolver.Address)) *MockClientConn_NewAddress_Call
func (*MockClientConn_NewAddress_Call) RunAndReturn ¶
func (_c *MockClientConn_NewAddress_Call) RunAndReturn(run func([]resolver.Address)) *MockClientConn_NewAddress_Call
type MockClientConn_ParseServiceConfig_Call ¶
MockClientConn_ParseServiceConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseServiceConfig'
func (*MockClientConn_ParseServiceConfig_Call) Return ¶
func (_c *MockClientConn_ParseServiceConfig_Call) Return(_a0 *serviceconfig.ParseResult) *MockClientConn_ParseServiceConfig_Call
func (*MockClientConn_ParseServiceConfig_Call) Run ¶
func (_c *MockClientConn_ParseServiceConfig_Call) Run(run func(serviceConfigJSON string)) *MockClientConn_ParseServiceConfig_Call
func (*MockClientConn_ParseServiceConfig_Call) RunAndReturn ¶
func (_c *MockClientConn_ParseServiceConfig_Call) RunAndReturn(run func(string) *serviceconfig.ParseResult) *MockClientConn_ParseServiceConfig_Call
type MockClientConn_ReportError_Call ¶
MockClientConn_ReportError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportError'
func (*MockClientConn_ReportError_Call) Return ¶
func (_c *MockClientConn_ReportError_Call) Return() *MockClientConn_ReportError_Call
func (*MockClientConn_ReportError_Call) Run ¶
func (_c *MockClientConn_ReportError_Call) Run(run func(_a0 error)) *MockClientConn_ReportError_Call
func (*MockClientConn_ReportError_Call) RunAndReturn ¶
func (_c *MockClientConn_ReportError_Call) RunAndReturn(run func(error)) *MockClientConn_ReportError_Call
type MockClientConn_UpdateState_Call ¶
MockClientConn_UpdateState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateState'
func (*MockClientConn_UpdateState_Call) Return ¶
func (_c *MockClientConn_UpdateState_Call) Return(_a0 error) *MockClientConn_UpdateState_Call
func (*MockClientConn_UpdateState_Call) Run ¶
func (_c *MockClientConn_UpdateState_Call) Run(run func(_a0 resolver.State)) *MockClientConn_UpdateState_Call
func (*MockClientConn_UpdateState_Call) RunAndReturn ¶
func (_c *MockClientConn_UpdateState_Call) RunAndReturn(run func(resolver.State) error) *MockClientConn_UpdateState_Call