mock_resolver

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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 MockClientConn

type MockClientConn struct {
	mock.Mock
}

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 (*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

type MockClientConn_NewAddress_Call struct {
	*mock.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 (*MockClientConn_NewAddress_Call) Run

func (*MockClientConn_NewAddress_Call) RunAndReturn

type MockClientConn_ParseServiceConfig_Call

type MockClientConn_ParseServiceConfig_Call struct {
	*mock.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 (*MockClientConn_ParseServiceConfig_Call) Run

func (*MockClientConn_ParseServiceConfig_Call) RunAndReturn

type MockClientConn_ReportError_Call

type MockClientConn_ReportError_Call struct {
	*mock.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 (*MockClientConn_ReportError_Call) Run

func (*MockClientConn_ReportError_Call) RunAndReturn

type MockClientConn_UpdateState_Call

type MockClientConn_UpdateState_Call struct {
	*mock.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 (*MockClientConn_UpdateState_Call) Run

func (*MockClientConn_UpdateState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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