2018-07-16 07:40:40 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: services/peer/service.go
|
2024-09-20 09:08:11 +00:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
|
|
|
// mockgen -package=peer -destination=services/peer/discoverer_mock.go -source=services/peer/service.go
|
|
|
|
//
|
2018-07-16 07:40:40 +00:00
|
|
|
|
|
|
|
// Package peer is a generated GoMock package.
|
|
|
|
package peer
|
|
|
|
|
|
|
|
import (
|
2020-03-09 07:55:58 +00:00
|
|
|
reflect "reflect"
|
2020-09-11 06:07:40 +00:00
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
gomock "go.uber.org/mock/gomock"
|
2018-07-16 07:40:40 +00:00
|
|
|
)
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// MockDiscoverer is a mock of Discoverer interface.
|
2018-07-16 07:40:40 +00:00
|
|
|
type MockDiscoverer struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockDiscovererMockRecorder
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// MockDiscovererMockRecorder is the mock recorder for MockDiscoverer.
|
2018-07-16 07:40:40 +00:00
|
|
|
type MockDiscovererMockRecorder struct {
|
|
|
|
mock *MockDiscoverer
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// NewMockDiscoverer creates a new mock instance.
|
2018-07-16 07:40:40 +00:00
|
|
|
func NewMockDiscoverer(ctrl *gomock.Controller) *MockDiscoverer {
|
|
|
|
mock := &MockDiscoverer{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockDiscovererMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2018-07-16 07:40:40 +00:00
|
|
|
func (m *MockDiscoverer) EXPECT() *MockDiscovererMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// Discover mocks base method.
|
2018-07-16 07:40:40 +00:00
|
|
|
func (m *MockDiscoverer) Discover(topic string, max, min int) error {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-07-16 07:40:40 +00:00
|
|
|
ret := m.ctrl.Call(m, "Discover", topic, max, min)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2024-09-20 09:08:11 +00:00
|
|
|
// Discover indicates an expected call of Discover.
|
|
|
|
func (mr *MockDiscovererMockRecorder) Discover(topic, max, min any) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-07-16 07:40:40 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Discover", reflect.TypeOf((*MockDiscoverer)(nil).Discover), topic, max, min)
|
|
|
|
}
|