79 lines
2.8 KiB
Go
79 lines
2.8 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anytypeio/go-anytype-infrastructure-experiments/common/commonspace/syncservice (interfaces: SyncClient)
|
|
|
|
// Package mock_syncservice is a generated GoMock package.
|
|
package mock_syncservice
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
spacesyncproto "github.com/anytypeio/go-anytype-infrastructure-experiments/common/commonspace/spacesyncproto"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockSyncClient is a mock of SyncClient interface.
|
|
type MockSyncClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockSyncClientMockRecorder
|
|
}
|
|
|
|
// MockSyncClientMockRecorder is the mock recorder for MockSyncClient.
|
|
type MockSyncClientMockRecorder struct {
|
|
mock *MockSyncClient
|
|
}
|
|
|
|
// NewMockSyncClient creates a new mock instance.
|
|
func NewMockSyncClient(ctrl *gomock.Controller) *MockSyncClient {
|
|
mock := &MockSyncClient{ctrl: ctrl}
|
|
mock.recorder = &MockSyncClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockSyncClient) EXPECT() *MockSyncClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// BroadcastAsync mocks base method.
|
|
func (m *MockSyncClient) BroadcastAsync(arg0 *spacesyncproto.ObjectSyncMessage) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BroadcastAsync", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// BroadcastAsync indicates an expected call of BroadcastAsync.
|
|
func (mr *MockSyncClientMockRecorder) BroadcastAsync(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastAsync", reflect.TypeOf((*MockSyncClient)(nil).BroadcastAsync), arg0)
|
|
}
|
|
|
|
// SendAsync mocks base method.
|
|
func (m *MockSyncClient) SendAsync(arg0 string, arg1 *spacesyncproto.ObjectSyncMessage) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SendAsync", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SendAsync indicates an expected call of SendAsync.
|
|
func (mr *MockSyncClientMockRecorder) SendAsync(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendAsync", reflect.TypeOf((*MockSyncClient)(nil).SendAsync), arg0, arg1)
|
|
}
|
|
|
|
// SendSync mocks base method.
|
|
func (m *MockSyncClient) SendSync(arg0 string, arg1 *spacesyncproto.ObjectSyncMessage) (*spacesyncproto.ObjectSyncMessage, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SendSync", arg0, arg1)
|
|
ret0, _ := ret[0].(*spacesyncproto.ObjectSyncMessage)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// SendSync indicates an expected call of SendSync.
|
|
func (mr *MockSyncClientMockRecorder) SendSync(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendSync", reflect.TypeOf((*MockSyncClient)(nil).SendSync), arg0, arg1)
|
|
}
|