1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Generate mocks

This commit is contained in:
Sergey 2024-01-24 10:01:00 +01:00
parent 9be4cb6196
commit 67907c89cc
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
29 changed files with 44 additions and 0 deletions

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_accountservice/mock_accountservice.go github.com/anyproto/any-sync/accountservice Service
//
// Package mock_accountservice is a generated GoMock package.
package mock_accountservice

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_debugstat/mock_debugstat.go github.com/anyproto/any-sync/app/debugstat StatService
//
// Package mock_debugstat is a generated GoMock package.
package mock_debugstat

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_ldiff/mock_ldiff.go github.com/anyproto/any-sync/app/ldiff Diff,Remote,DiffContainer
//
// Package mock_ldiff is a generated GoMock package.
package mock_ldiff

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_credentialprovider/mock_credentialprovider.go github.com/anyproto/any-sync/commonspace/credentialprovider CredentialProvider
//
// Package mock_credentialprovider is a generated GoMock package.
package mock_credentialprovider

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_deletionmanager/mock_deletionmanager.go github.com/anyproto/any-sync/commonspace/deletionmanager DeletionManager,Deleter
//
// Package mock_deletionmanager is a generated GoMock package.
package mock_deletionmanager

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_deletionstate/mock_deletionstate.go github.com/anyproto/any-sync/commonspace/deletionstate ObjectDeletionState
//
// Package mock_deletionstate is a generated GoMock package.
package mock_deletionstate

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_headsync/mock_headsync.go github.com/anyproto/any-sync/commonspace/headsync DiffSyncer
//
// Package mock_headsync is a generated GoMock package.
package mock_headsync

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_commonspace/mock_commonspace.go github.com/anyproto/any-sync/commonspace Space
//
// Package mock_commonspace is a generated GoMock package.
package mock_commonspace
@ -14,6 +15,7 @@ import (
time "time"
commonspace "github.com/anyproto/any-sync/commonspace"
aclclient "github.com/anyproto/any-sync/commonspace/acl/aclclient"
headsync "github.com/anyproto/any-sync/commonspace/headsync"
syncacl "github.com/anyproto/any-sync/commonspace/object/acl/syncacl"
treesyncer "github.com/anyproto/any-sync/commonspace/object/treesyncer"
@ -63,6 +65,20 @@ func (mr *MockSpaceMockRecorder) Acl() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Acl", reflect.TypeOf((*MockSpace)(nil).Acl))
}
// AclClient mocks base method.
func (m *MockSpace) AclClient() aclclient.AclSpaceClient {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AclClient")
ret0, _ := ret[0].(aclclient.AclSpaceClient)
return ret0
}
// AclClient indicates an expected call of AclClient.
func (mr *MockSpaceMockRecorder) AclClient() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AclClient", reflect.TypeOf((*MockSpace)(nil).AclClient))
}
// Close mocks base method.
func (m *MockSpace) Close() error {
m.ctrl.T.Helper()

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_list/mock_list.go github.com/anyproto/any-sync/commonspace/object/acl/list AclList
//
// Package mock_list is a generated GoMock package.
package mock_list

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_liststorage/mock_liststorage.go github.com/anyproto/any-sync/commonspace/object/acl/liststorage ListStorage
//
// Package mock_liststorage is a generated GoMock package.
package mock_liststorage

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_syncacl/mock_syncacl.go github.com/anyproto/any-sync/commonspace/object/acl/syncacl SyncAcl,SyncClient,RequestFactory,AclSyncProtocol
//
// Package mock_syncacl is a generated GoMock package.
package mock_syncacl

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_objecttree/mock_objecttree.go github.com/anyproto/any-sync/commonspace/object/tree/objecttree ObjectTree
//
// Package mock_objecttree is a generated GoMock package.
package mock_objecttree

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_synctree/mock_synctree.go github.com/anyproto/any-sync/commonspace/object/tree/synctree SyncTree,ReceiveQueue,HeadNotifiable,SyncClient,RequestFactory,TreeSyncProtocol
//
// Package mock_synctree is a generated GoMock package.
package mock_synctree

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_updatelistener/mock_updatelistener.go github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener UpdateListener
//
// Package mock_updatelistener is a generated GoMock package.
package mock_updatelistener

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_treestorage/mock_treestorage.go github.com/anyproto/any-sync/commonspace/object/tree/treestorage TreeStorage
//
// Package mock_treestorage is a generated GoMock package.
package mock_treestorage

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_treemanager/mock_treemanager.go github.com/anyproto/any-sync/commonspace/object/treemanager TreeManager
//
// Package mock_treemanager is a generated GoMock package.
package mock_treemanager

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_treesyncer/mock_treesyncer.go github.com/anyproto/any-sync/commonspace/object/treesyncer TreeSyncer
//
// Package mock_treesyncer is a generated GoMock package.
package mock_treesyncer

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_objectsync/mock_objectsync.go github.com/anyproto/any-sync/commonspace/objectsync ObjectSync
//
// Package mock_objectsync is a generated GoMock package.
package mock_objectsync

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_objecttreebuilder/mock_objecttreebuilder.go github.com/anyproto/any-sync/commonspace/objecttreebuilder TreeBuilder
//
// Package mock_objecttreebuilder is a generated GoMock package.
package mock_objecttreebuilder

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_peermanager/mock_peermanager.go github.com/anyproto/any-sync/commonspace/peermanager PeerManager
//
// Package mock_peermanager is a generated GoMock package.
package mock_peermanager

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_settingsstate/mock_settingsstate.go github.com/anyproto/any-sync/commonspace/settings/settingsstate StateBuilder,ChangeFactory
//
// Package mock_settingsstate is a generated GoMock package.
package mock_settingsstate

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_spacestorage/mock_spacestorage.go github.com/anyproto/any-sync/commonspace/spacestorage SpaceStorage
//
// Package mock_spacestorage is a generated GoMock package.
package mock_spacestorage

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_spacesyncproto/mock_spacesyncproto.go github.com/anyproto/any-sync/commonspace/spacesyncproto DRPCSpaceSyncClient
//
// Package mock_spacesyncproto is a generated GoMock package.
package mock_spacesyncproto

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_consensusclient/mock_consensusclient.go github.com/anyproto/any-sync/consensus/consensusclient Service
//
// Package mock_consensusclient is a generated GoMock package.
package mock_consensusclient

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_peer/mock_peer.go github.com/anyproto/any-sync/net/peer Peer
//
// Package mock_peer is a generated GoMock package.
package mock_peer

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_pool/mock_pool.go github.com/anyproto/any-sync/net/pool Pool
//
// Package mock_pool is a generated GoMock package.
package mock_pool

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_transport/mock_transport.go github.com/anyproto/any-sync/net/transport Transport,MultiConn
//
// Package mock_transport is a generated GoMock package.
package mock_transport

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_nodeconf/mock_nodeconf.go github.com/anyproto/any-sync/nodeconf Service
//
// Package mock_nodeconf is a generated GoMock package.
package mock_nodeconf

View file

@ -5,6 +5,7 @@
//
// mockgen -destination mock_periodicsync/mock_periodicsync.go github.com/anyproto/any-sync/util/periodicsync PeriodicSync
//
// Package mock_periodicsync is a generated GoMock package.
package mock_periodicsync