257 lines
8.1 KiB
Go
257 lines
8.1 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anytypeio/any-sync/nodeconf (interfaces: Service,Configuration)
|
|
|
|
// Package mock_nodeconf is a generated GoMock package.
|
|
package mock_nodeconf
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
app "github.com/anytypeio/any-sync/app"
|
|
nodeconf "github.com/anytypeio/any-sync/nodeconf"
|
|
chash "github.com/anytypeio/go-chash"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockService is a mock of Service interface.
|
|
type MockService struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockServiceMockRecorder
|
|
}
|
|
|
|
// MockServiceMockRecorder is the mock recorder for MockService.
|
|
type MockServiceMockRecorder struct {
|
|
mock *MockService
|
|
}
|
|
|
|
// NewMockService creates a new mock instance.
|
|
func NewMockService(ctrl *gomock.Controller) *MockService {
|
|
mock := &MockService{ctrl: ctrl}
|
|
mock.recorder = &MockServiceMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockService) EXPECT() *MockServiceMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetById mocks base method.
|
|
func (m *MockService) GetById(arg0 string) nodeconf.Configuration {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetById", arg0)
|
|
ret0, _ := ret[0].(nodeconf.Configuration)
|
|
return ret0
|
|
}
|
|
|
|
// GetById indicates an expected call of GetById.
|
|
func (mr *MockServiceMockRecorder) GetById(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetById", reflect.TypeOf((*MockService)(nil).GetById), arg0)
|
|
}
|
|
|
|
// GetLast mocks base method.
|
|
func (m *MockService) GetLast() nodeconf.Configuration {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetLast")
|
|
ret0, _ := ret[0].(nodeconf.Configuration)
|
|
return ret0
|
|
}
|
|
|
|
// GetLast indicates an expected call of GetLast.
|
|
func (mr *MockServiceMockRecorder) GetLast() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLast", reflect.TypeOf((*MockService)(nil).GetLast))
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockService) Init(arg0 *app.App) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Init", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockServiceMockRecorder) Init(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockService)(nil).Init), arg0)
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockService) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockServiceMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockService)(nil).Name))
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// Addresses mocks base method.
|
|
func (m *MockConfiguration) Addresses() map[string][]string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Addresses")
|
|
ret0, _ := ret[0].(map[string][]string)
|
|
return ret0
|
|
}
|
|
|
|
// Addresses indicates an expected call of Addresses.
|
|
func (mr *MockConfigurationMockRecorder) Addresses() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Addresses", reflect.TypeOf((*MockConfiguration)(nil).Addresses))
|
|
}
|
|
|
|
// CHash mocks base method.
|
|
func (m *MockConfiguration) CHash() chash.CHash {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CHash")
|
|
ret0, _ := ret[0].(chash.CHash)
|
|
return ret0
|
|
}
|
|
|
|
// CHash indicates an expected call of CHash.
|
|
func (mr *MockConfigurationMockRecorder) CHash() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CHash", reflect.TypeOf((*MockConfiguration)(nil).CHash))
|
|
}
|
|
|
|
// ConsensusPeers mocks base method.
|
|
func (m *MockConfiguration) ConsensusPeers() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ConsensusPeers")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// ConsensusPeers indicates an expected call of ConsensusPeers.
|
|
func (mr *MockConfigurationMockRecorder) ConsensusPeers() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsensusPeers", reflect.TypeOf((*MockConfiguration)(nil).ConsensusPeers))
|
|
}
|
|
|
|
// CoordinatorPeers mocks base method.
|
|
func (m *MockConfiguration) CoordinatorPeers() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CoordinatorPeers")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// CoordinatorPeers indicates an expected call of CoordinatorPeers.
|
|
func (mr *MockConfigurationMockRecorder) CoordinatorPeers() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CoordinatorPeers", reflect.TypeOf((*MockConfiguration)(nil).CoordinatorPeers))
|
|
}
|
|
|
|
// FilePeers mocks base method.
|
|
func (m *MockConfiguration) FilePeers() []string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FilePeers")
|
|
ret0, _ := ret[0].([]string)
|
|
return ret0
|
|
}
|
|
|
|
// FilePeers indicates an expected call of FilePeers.
|
|
func (mr *MockConfigurationMockRecorder) FilePeers() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilePeers", reflect.TypeOf((*MockConfiguration)(nil).FilePeers))
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
// NodeTypes mocks base method.
|
|
func (m *MockConfiguration) NodeTypes(arg0 string) []nodeconf.NodeType {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "NodeTypes", arg0)
|
|
ret0, _ := ret[0].([]nodeconf.NodeType)
|
|
return ret0
|
|
}
|
|
|
|
// NodeTypes indicates an expected call of NodeTypes.
|
|
func (mr *MockConfigurationMockRecorder) NodeTypes(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeTypes", reflect.TypeOf((*MockConfiguration)(nil).NodeTypes), arg0)
|
|
}
|
|
|
|
// Partition mocks base method.
|
|
func (m *MockConfiguration) Partition(arg0 string) int {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Partition", arg0)
|
|
ret0, _ := ret[0].(int)
|
|
return ret0
|
|
}
|
|
|
|
// Partition indicates an expected call of Partition.
|
|
func (mr *MockConfigurationMockRecorder) Partition(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Partition", reflect.TypeOf((*MockConfiguration)(nil).Partition), arg0)
|
|
}
|