mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
make common module as any-sync repo
This commit is contained in:
parent
aac5b3e83c
commit
596a315c5f
320 changed files with 453 additions and 29202 deletions
|
@ -0,0 +1,111 @@
|
|||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/anytypeio/any-sync/commonspace/spacesyncproto (interfaces: DRPCSpaceSyncClient)
|
||||
|
||||
// Package mock_spacesyncproto is a generated GoMock package.
|
||||
package mock_spacesyncproto
|
||||
|
||||
import (
|
||||
context "context"
|
||||
reflect "reflect"
|
||||
|
||||
spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
drpc "storj.io/drpc"
|
||||
)
|
||||
|
||||
// MockDRPCSpaceSyncClient is a mock of DRPCSpaceSyncClient interface.
|
||||
type MockDRPCSpaceSyncClient struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockDRPCSpaceSyncClientMockRecorder
|
||||
}
|
||||
|
||||
// MockDRPCSpaceSyncClientMockRecorder is the mock recorder for MockDRPCSpaceSyncClient.
|
||||
type MockDRPCSpaceSyncClientMockRecorder struct {
|
||||
mock *MockDRPCSpaceSyncClient
|
||||
}
|
||||
|
||||
// NewMockDRPCSpaceSyncClient creates a new mock instance.
|
||||
func NewMockDRPCSpaceSyncClient(ctrl *gomock.Controller) *MockDRPCSpaceSyncClient {
|
||||
mock := &MockDRPCSpaceSyncClient{ctrl: ctrl}
|
||||
mock.recorder = &MockDRPCSpaceSyncClientMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockDRPCSpaceSyncClient) EXPECT() *MockDRPCSpaceSyncClientMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// DRPCConn mocks base method.
|
||||
func (m *MockDRPCSpaceSyncClient) DRPCConn() drpc.Conn {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "DRPCConn")
|
||||
ret0, _ := ret[0].(drpc.Conn)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// DRPCConn indicates an expected call of DRPCConn.
|
||||
func (mr *MockDRPCSpaceSyncClientMockRecorder) DRPCConn() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DRPCConn", reflect.TypeOf((*MockDRPCSpaceSyncClient)(nil).DRPCConn))
|
||||
}
|
||||
|
||||
// HeadSync mocks base method.
|
||||
func (m *MockDRPCSpaceSyncClient) HeadSync(arg0 context.Context, arg1 *spacesyncproto.HeadSyncRequest) (*spacesyncproto.HeadSyncResponse, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "HeadSync", arg0, arg1)
|
||||
ret0, _ := ret[0].(*spacesyncproto.HeadSyncResponse)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// HeadSync indicates an expected call of HeadSync.
|
||||
func (mr *MockDRPCSpaceSyncClientMockRecorder) HeadSync(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeadSync", reflect.TypeOf((*MockDRPCSpaceSyncClient)(nil).HeadSync), arg0, arg1)
|
||||
}
|
||||
|
||||
// ObjectSyncStream mocks base method.
|
||||
func (m *MockDRPCSpaceSyncClient) ObjectSyncStream(arg0 context.Context) (spacesyncproto.DRPCSpaceSync_ObjectSyncStreamClient, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ObjectSyncStream", arg0)
|
||||
ret0, _ := ret[0].(spacesyncproto.DRPCSpaceSync_ObjectSyncStreamClient)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// ObjectSyncStream indicates an expected call of ObjectSyncStream.
|
||||
func (mr *MockDRPCSpaceSyncClientMockRecorder) ObjectSyncStream(arg0 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObjectSyncStream", reflect.TypeOf((*MockDRPCSpaceSyncClient)(nil).ObjectSyncStream), arg0)
|
||||
}
|
||||
|
||||
// SpacePull mocks base method.
|
||||
func (m *MockDRPCSpaceSyncClient) SpacePull(arg0 context.Context, arg1 *spacesyncproto.SpacePullRequest) (*spacesyncproto.SpacePullResponse, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SpacePull", arg0, arg1)
|
||||
ret0, _ := ret[0].(*spacesyncproto.SpacePullResponse)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// SpacePull indicates an expected call of SpacePull.
|
||||
func (mr *MockDRPCSpaceSyncClientMockRecorder) SpacePull(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpacePull", reflect.TypeOf((*MockDRPCSpaceSyncClient)(nil).SpacePull), arg0, arg1)
|
||||
}
|
||||
|
||||
// SpacePush mocks base method.
|
||||
func (m *MockDRPCSpaceSyncClient) SpacePush(arg0 context.Context, arg1 *spacesyncproto.SpacePushRequest) (*spacesyncproto.SpacePushResponse, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SpacePush", arg0, arg1)
|
||||
ret0, _ := ret[0].(*spacesyncproto.SpacePushResponse)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// SpacePush indicates an expected call of SpacePush.
|
||||
func (mr *MockDRPCSpaceSyncClientMockRecorder) SpacePush(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpacePush", reflect.TypeOf((*MockDRPCSpaceSyncClient)(nil).SpacePush), arg0, arg1)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue