You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
4.7 KiB
153 lines
4.7 KiB
6 years ago
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: hostv2.go
|
||
|
|
||
5 years ago
|
// Package hostv2 is a generated GoMock package.
|
||
|
package hostv2
|
||
6 years ago
|
|
||
|
import (
|
||
|
context "context"
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
go_libp2p_pubsub "github.com/libp2p/go-libp2p-pubsub"
|
||
|
reflect "reflect"
|
||
|
)
|
||
|
|
||
5 years ago
|
// MocktopicHandle is a mock of topicHandle interface
|
||
|
type MocktopicHandle struct {
|
||
6 years ago
|
ctrl *gomock.Controller
|
||
5 years ago
|
recorder *MocktopicHandleMockRecorder
|
||
6 years ago
|
}
|
||
|
|
||
5 years ago
|
// MocktopicHandleMockRecorder is the mock recorder for MocktopicHandle
|
||
|
type MocktopicHandleMockRecorder struct {
|
||
|
mock *MocktopicHandle
|
||
6 years ago
|
}
|
||
|
|
||
5 years ago
|
// NewMocktopicHandle creates a new mock instance
|
||
|
func NewMocktopicHandle(ctrl *gomock.Controller) *MocktopicHandle {
|
||
|
mock := &MocktopicHandle{ctrl: ctrl}
|
||
|
mock.recorder = &MocktopicHandleMockRecorder{mock}
|
||
6 years ago
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
5 years ago
|
func (m *MocktopicHandle) EXPECT() *MocktopicHandleMockRecorder {
|
||
6 years ago
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Publish mocks base method
|
||
5 years ago
|
func (m *MocktopicHandle) Publish(ctx context.Context, data []byte) error {
|
||
6 years ago
|
m.ctrl.T.Helper()
|
||
5 years ago
|
ret := m.ctrl.Call(m, "Publish", ctx, data)
|
||
6 years ago
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Publish indicates an expected call of Publish
|
||
5 years ago
|
func (mr *MocktopicHandleMockRecorder) Publish(ctx, data interface{}) *gomock.Call {
|
||
6 years ago
|
mr.mock.ctrl.T.Helper()
|
||
5 years ago
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MocktopicHandle)(nil).Publish), ctx, data)
|
||
6 years ago
|
}
|
||
|
|
||
|
// Subscribe mocks base method
|
||
5 years ago
|
func (m *MocktopicHandle) Subscribe() (subscription, error) {
|
||
6 years ago
|
m.ctrl.T.Helper()
|
||
5 years ago
|
ret := m.ctrl.Call(m, "Subscribe")
|
||
|
ret0, _ := ret[0].(subscription)
|
||
6 years ago
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Subscribe indicates an expected call of Subscribe
|
||
5 years ago
|
func (mr *MocktopicHandleMockRecorder) Subscribe() *gomock.Call {
|
||
6 years ago
|
mr.mock.ctrl.T.Helper()
|
||
5 years ago
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MocktopicHandle)(nil).Subscribe))
|
||
|
}
|
||
|
|
||
|
// MocktopicJoiner is a mock of topicJoiner interface
|
||
|
type MocktopicJoiner struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MocktopicJoinerMockRecorder
|
||
|
}
|
||
|
|
||
|
// MocktopicJoinerMockRecorder is the mock recorder for MocktopicJoiner
|
||
|
type MocktopicJoinerMockRecorder struct {
|
||
|
mock *MocktopicJoiner
|
||
|
}
|
||
|
|
||
|
// NewMocktopicJoiner creates a new mock instance
|
||
|
func NewMocktopicJoiner(ctrl *gomock.Controller) *MocktopicJoiner {
|
||
|
mock := &MocktopicJoiner{ctrl: ctrl}
|
||
|
mock.recorder = &MocktopicJoinerMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
|
func (m *MocktopicJoiner) EXPECT() *MocktopicJoinerMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// JoinTopic mocks base method
|
||
|
func (m *MocktopicJoiner) JoinTopic(topic string) (topicHandle, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "JoinTopic", topic)
|
||
|
ret0, _ := ret[0].(topicHandle)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// JoinTopic indicates an expected call of JoinTopic
|
||
|
func (mr *MocktopicJoinerMockRecorder) JoinTopic(topic interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "JoinTopic", reflect.TypeOf((*MocktopicJoiner)(nil).JoinTopic), topic)
|
||
6 years ago
|
}
|
||
|
|
||
6 years ago
|
// Mocksubscription is a mock of subscription interface
|
||
|
type Mocksubscription struct {
|
||
6 years ago
|
ctrl *gomock.Controller
|
||
6 years ago
|
recorder *MocksubscriptionMockRecorder
|
||
6 years ago
|
}
|
||
|
|
||
6 years ago
|
// MocksubscriptionMockRecorder is the mock recorder for Mocksubscription
|
||
|
type MocksubscriptionMockRecorder struct {
|
||
|
mock *Mocksubscription
|
||
6 years ago
|
}
|
||
|
|
||
6 years ago
|
// NewMocksubscription creates a new mock instance
|
||
|
func NewMocksubscription(ctrl *gomock.Controller) *Mocksubscription {
|
||
|
mock := &Mocksubscription{ctrl: ctrl}
|
||
|
mock.recorder = &MocksubscriptionMockRecorder{mock}
|
||
6 years ago
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
6 years ago
|
func (m *Mocksubscription) EXPECT() *MocksubscriptionMockRecorder {
|
||
6 years ago
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Next mocks base method
|
||
6 years ago
|
func (m *Mocksubscription) Next(ctx context.Context) (*go_libp2p_pubsub.Message, error) {
|
||
6 years ago
|
m.ctrl.T.Helper()
|
||
6 years ago
|
ret := m.ctrl.Call(m, "Next", ctx)
|
||
|
ret0, _ := ret[0].(*go_libp2p_pubsub.Message)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Next indicates an expected call of Next
|
||
6 years ago
|
func (mr *MocksubscriptionMockRecorder) Next(ctx interface{}) *gomock.Call {
|
||
6 years ago
|
mr.mock.ctrl.T.Helper()
|
||
6 years ago
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*Mocksubscription)(nil).Next), ctx)
|
||
6 years ago
|
}
|
||
|
|
||
|
// Cancel mocks base method
|
||
6 years ago
|
func (m *Mocksubscription) Cancel() {
|
||
6 years ago
|
m.ctrl.T.Helper()
|
||
6 years ago
|
m.ctrl.Call(m, "Cancel")
|
||
|
}
|
||
|
|
||
|
// Cancel indicates an expected call of Cancel
|
||
6 years ago
|
func (mr *MocksubscriptionMockRecorder) Cancel() *gomock.Call {
|
||
6 years ago
|
mr.mock.ctrl.T.Helper()
|
||
6 years ago
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cancel", reflect.TypeOf((*Mocksubscription)(nil).Cancel))
|
||
6 years ago
|
}
|