mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
96 lines
3.5 KiB
Go
96 lines
3.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anytypeio/any-sync/commonspace/confconnector (interfaces: ConfConnector)
|
|
|
|
// Package mock_confconnector is a generated GoMock package.
|
|
package mock_confconnector
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
peer "github.com/anytypeio/any-sync/net/peer"
|
|
pool "github.com/anytypeio/any-sync/net/pool"
|
|
nodeconf "github.com/anytypeio/any-sync/nodeconf"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// 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
|
|
}
|
|
|
|
// Configuration mocks base method.
|
|
func (m *MockConfConnector) Configuration() nodeconf.Configuration {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Configuration")
|
|
ret0, _ := ret[0].(nodeconf.Configuration)
|
|
return ret0
|
|
}
|
|
|
|
// Configuration indicates an expected call of Configuration.
|
|
func (mr *MockConfConnectorMockRecorder) Configuration() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Configuration", reflect.TypeOf((*MockConfConnector)(nil).Configuration))
|
|
}
|
|
|
|
// DialInactiveResponsiblePeers mocks base method.
|
|
func (m *MockConfConnector) DialInactiveResponsiblePeers(arg0 context.Context, arg1 string, arg2 []string) ([]peer.Peer, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DialInactiveResponsiblePeers", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].([]peer.Peer)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// DialInactiveResponsiblePeers indicates an expected call of DialInactiveResponsiblePeers.
|
|
func (mr *MockConfConnectorMockRecorder) DialInactiveResponsiblePeers(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialInactiveResponsiblePeers", reflect.TypeOf((*MockConfConnector)(nil).DialInactiveResponsiblePeers), arg0, arg1, arg2)
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
// Pool mocks base method.
|
|
func (m *MockConfConnector) Pool() pool.Pool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Pool")
|
|
ret0, _ := ret[0].(pool.Pool)
|
|
return ret0
|
|
}
|
|
|
|
// Pool indicates an expected call of Pool.
|
|
func (mr *MockConfConnectorMockRecorder) Pool() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pool", reflect.TypeOf((*MockConfConnector)(nil).Pool))
|
|
}
|