124 lines
4.2 KiB
Go
124 lines
4.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anytypeio/go-anytype-infrastructure-experiments/common/nodeconf (interfaces: Configuration)
|
|
|
|
// Package nodeconf is a generated GoMock package.
|
|
package 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
|
|
}
|
|
|
|
// AllPeers mocks base method.
|
|
func (m *MockConfiguration) AllPeers(arg0 context.Context, arg1 string) ([]peer.Peer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AllPeers", arg0, arg1)
|
|
ret0, _ := ret[0].([]peer.Peer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AllPeers indicates an expected call of AllPeers.
|
|
func (mr *MockConfigurationMockRecorder) AllPeers(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllPeers", reflect.TypeOf((*MockConfiguration)(nil).AllPeers), arg0, arg1)
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
// OnePeer mocks base method.
|
|
func (m *MockConfiguration) OnePeer(arg0 context.Context, arg1 string) (peer.Peer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "OnePeer", arg0, arg1)
|
|
ret0, _ := ret[0].(peer.Peer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// OnePeer indicates an expected call of OnePeer.
|
|
func (mr *MockConfigurationMockRecorder) OnePeer(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnePeer", reflect.TypeOf((*MockConfiguration)(nil).OnePeer), arg0, arg1)
|
|
}
|
|
|
|
// ResponsiblePeers mocks base method.
|
|
func (m *MockConfiguration) ResponsiblePeers(arg0 context.Context, arg1 string) ([]peer.Peer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ResponsiblePeers", arg0, arg1)
|
|
ret0, _ := ret[0].([]peer.Peer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ResponsiblePeers indicates an expected call of ResponsiblePeers.
|
|
func (mr *MockConfigurationMockRecorder) ResponsiblePeers(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResponsiblePeers", reflect.TypeOf((*MockConfiguration)(nil).ResponsiblePeers), arg0, arg1)
|
|
}
|