132 lines
4.5 KiB
Go
132 lines
4.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anytypeio/go-anytype-infrastructure-experiments/common/nodeconf (interfaces: Configuration,ConfConnector)
|
|
|
|
// Package mock_nodeconf is a generated GoMock package.
|
|
package mock_nodeconf
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
peer "github.com/anytypeio/go-anytype-infrastructure-experiments/common/net/peer"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockConfiguration is a mock of Configuration interface.
|
|
type MockConfiguration struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockConfigurationMockRecorder
|
|
}
|
|
|
|
// MockConfigurationMockRecorder is the mock recorder for MockConfiguration.
|
|
type MockConfigurationMockRecorder struct {
|
|
mock *MockConfiguration
|
|
}
|
|
|
|
// NewMockConfiguration creates a new mock instance.
|
|
func NewMockConfiguration(ctrl *gomock.Controller) *MockConfiguration {
|
|
mock := &MockConfiguration{ctrl: ctrl}
|
|
mock.recorder = &MockConfigurationMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Id mocks base method.
|
|
func (m *MockConfiguration) Id() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Id")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Id indicates an expected call of Id.
|
|
func (mr *MockConfigurationMockRecorder) Id() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Id", reflect.TypeOf((*MockConfiguration)(nil).Id))
|
|
}
|
|
|
|
// IsResponsible mocks base method.
|
|
func (m *MockConfiguration) IsResponsible(arg0 string) bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsResponsible", arg0)
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// IsResponsible indicates an expected call of IsResponsible.
|
|
func (mr *MockConfigurationMockRecorder) IsResponsible(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsResponsible", reflect.TypeOf((*MockConfiguration)(nil).IsResponsible), arg0)
|
|
}
|
|
|
|
// NodeIds mocks base method.
|
|
func (m *MockConfiguration) NodeIds(arg0 string) []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "NodeIds", arg0)
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// NodeIds indicates an expected call of NodeIds.
|
|
func (mr *MockConfigurationMockRecorder) NodeIds(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeIds", reflect.TypeOf((*MockConfiguration)(nil).NodeIds), arg0)
|
|
}
|
|
|
|
// MockConfConnector is a mock of ConfConnector interface.
|
|
type MockConfConnector struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockConfConnectorMockRecorder
|
|
}
|
|
|
|
// MockConfConnectorMockRecorder is the mock recorder for MockConfConnector.
|
|
type MockConfConnectorMockRecorder struct {
|
|
mock *MockConfConnector
|
|
}
|
|
|
|
// NewMockConfConnector creates a new mock instance.
|
|
func NewMockConfConnector(ctrl *gomock.Controller) *MockConfConnector {
|
|
mock := &MockConfConnector{ctrl: ctrl}
|
|
mock.recorder = &MockConfConnectorMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockConfConnector) EXPECT() *MockConfConnectorMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// DialResponsiblePeers mocks base method.
|
|
func (m *MockConfConnector) DialResponsiblePeers(arg0 context.Context, arg1 string) ([]peer.Peer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DialResponsiblePeers", arg0, arg1)
|
|
ret0, _ := ret[0].([]peer.Peer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// DialResponsiblePeers indicates an expected call of DialResponsiblePeers.
|
|
func (mr *MockConfConnectorMockRecorder) DialResponsiblePeers(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialResponsiblePeers", reflect.TypeOf((*MockConfConnector)(nil).DialResponsiblePeers), arg0, arg1)
|
|
}
|
|
|
|
// GetResponsiblePeers mocks base method.
|
|
func (m *MockConfConnector) GetResponsiblePeers(arg0 context.Context, arg1 string) ([]peer.Peer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetResponsiblePeers", arg0, arg1)
|
|
ret0, _ := ret[0].([]peer.Peer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetResponsiblePeers indicates an expected call of GetResponsiblePeers.
|
|
func (mr *MockConfConnectorMockRecorder) GetResponsiblePeers(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResponsiblePeers", reflect.TypeOf((*MockConfConnector)(nil).GetResponsiblePeers), arg0, arg1)
|
|
}
|