Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddClusterEventHandler(arg0 memberlist.ClusterNodeEventHandler)
- func (m *MockInterface) AliveNodes() sets.Set[string]
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) SelectNodeForIP(arg0, arg1 string, arg2 ...func(string) bool) (string, error)
- func (m *MockInterface) ShouldSelectIP(arg0, arg1 string, arg2 ...func(string) bool) (bool, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddClusterEventHandler(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AliveNodes() *gomock.Call
- func (mr *MockInterfaceMockRecorder) SelectNodeForIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ShouldSelectIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶ added in v1.11.0
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface
func NewMockInterface ¶ added in v1.11.0
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance
func (*MockInterface) AddClusterEventHandler ¶ added in v1.11.0
func (m *MockInterface) AddClusterEventHandler(arg0 memberlist.ClusterNodeEventHandler)
AddClusterEventHandler mocks base method
func (*MockInterface) AliveNodes ¶ added in v1.11.0
func (m *MockInterface) AliveNodes() sets.Set[string]
AliveNodes mocks base method
func (*MockInterface) EXPECT ¶ added in v1.11.0
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) SelectNodeForIP ¶ added in v1.11.0
func (m *MockInterface) SelectNodeForIP(arg0, arg1 string, arg2 ...func(string) bool) (string, error)
SelectNodeForIP mocks base method
func (*MockInterface) ShouldSelectIP ¶ added in v1.11.0
ShouldSelectIP mocks base method
type MockInterfaceMockRecorder ¶ added in v1.11.0
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) AddClusterEventHandler ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) AddClusterEventHandler(arg0 interface{}) *gomock.Call
AddClusterEventHandler indicates an expected call of AddClusterEventHandler
func (*MockInterfaceMockRecorder) AliveNodes ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) AliveNodes() *gomock.Call
AliveNodes indicates an expected call of AliveNodes
func (*MockInterfaceMockRecorder) SelectNodeForIP ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) SelectNodeForIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SelectNodeForIP indicates an expected call of SelectNodeForIP
func (*MockInterfaceMockRecorder) ShouldSelectIP ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) ShouldSelectIP(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ShouldSelectIP indicates an expected call of ShouldSelectIP