mock_synctree

package
v0.3.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package mock_synctree is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHeadNotifiable

type MockHeadNotifiable struct {
	// contains filtered or unexported fields
}

MockHeadNotifiable is a mock of HeadNotifiable interface.

func NewMockHeadNotifiable

func NewMockHeadNotifiable(ctrl *gomock.Controller) *MockHeadNotifiable

NewMockHeadNotifiable creates a new mock instance.

func (*MockHeadNotifiable) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHeadNotifiable) UpdateHeads

func (m *MockHeadNotifiable) UpdateHeads(arg0 string, arg1 []string)

UpdateHeads mocks base method.

type MockHeadNotifiableMockRecorder

type MockHeadNotifiableMockRecorder struct {
	// contains filtered or unexported fields
}

MockHeadNotifiableMockRecorder is the mock recorder for MockHeadNotifiable.

func (*MockHeadNotifiableMockRecorder) UpdateHeads

func (mr *MockHeadNotifiableMockRecorder) UpdateHeads(arg0, arg1 interface{}) *gomock.Call

UpdateHeads indicates an expected call of UpdateHeads.

type MockReceiveQueue

type MockReceiveQueue struct {
	// contains filtered or unexported fields
}

MockReceiveQueue is a mock of ReceiveQueue interface.

func NewMockReceiveQueue

func NewMockReceiveQueue(ctrl *gomock.Controller) *MockReceiveQueue

NewMockReceiveQueue creates a new mock instance.

func (*MockReceiveQueue) AddMessage

func (m *MockReceiveQueue) AddMessage(arg0 string, arg1 *treechangeproto.TreeSyncMessage, arg2 string) bool

AddMessage mocks base method.

func (*MockReceiveQueue) ClearQueue

func (m *MockReceiveQueue) ClearQueue(arg0 string)

ClearQueue mocks base method.

func (*MockReceiveQueue) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReceiveQueue) GetMessage

GetMessage mocks base method.

type MockReceiveQueueMockRecorder

type MockReceiveQueueMockRecorder struct {
	// contains filtered or unexported fields
}

MockReceiveQueueMockRecorder is the mock recorder for MockReceiveQueue.

func (*MockReceiveQueueMockRecorder) AddMessage

func (mr *MockReceiveQueueMockRecorder) AddMessage(arg0, arg1, arg2 interface{}) *gomock.Call

AddMessage indicates an expected call of AddMessage.

func (*MockReceiveQueueMockRecorder) ClearQueue

func (mr *MockReceiveQueueMockRecorder) ClearQueue(arg0 interface{}) *gomock.Call

ClearQueue indicates an expected call of ClearQueue.

func (*MockReceiveQueueMockRecorder) GetMessage

func (mr *MockReceiveQueueMockRecorder) GetMessage(arg0 interface{}) *gomock.Call

GetMessage indicates an expected call of GetMessage.

type MockRequestFactory added in v0.2.0

type MockRequestFactory struct {
	// contains filtered or unexported fields
}

MockRequestFactory is a mock of RequestFactory interface.

func NewMockRequestFactory added in v0.2.0

func NewMockRequestFactory(ctrl *gomock.Controller) *MockRequestFactory

NewMockRequestFactory creates a new mock instance.

func (*MockRequestFactory) CreateFullSyncRequest added in v0.2.0

func (m *MockRequestFactory) CreateFullSyncRequest(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)

CreateFullSyncRequest mocks base method.

func (*MockRequestFactory) CreateFullSyncResponse added in v0.2.0

func (m *MockRequestFactory) CreateFullSyncResponse(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)

CreateFullSyncResponse mocks base method.

func (*MockRequestFactory) CreateHeadUpdate added in v0.2.0

CreateHeadUpdate mocks base method.

func (*MockRequestFactory) CreateNewTreeRequest added in v0.2.0

func (m *MockRequestFactory) CreateNewTreeRequest() *treechangeproto.TreeSyncMessage

CreateNewTreeRequest mocks base method.

func (*MockRequestFactory) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

type MockRequestFactoryMockRecorder added in v0.2.0

type MockRequestFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRequestFactoryMockRecorder is the mock recorder for MockRequestFactory.

func (*MockRequestFactoryMockRecorder) CreateFullSyncRequest added in v0.2.0

func (mr *MockRequestFactoryMockRecorder) CreateFullSyncRequest(arg0, arg1, arg2 interface{}) *gomock.Call

CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.

func (*MockRequestFactoryMockRecorder) CreateFullSyncResponse added in v0.2.0

func (mr *MockRequestFactoryMockRecorder) CreateFullSyncResponse(arg0, arg1, arg2 interface{}) *gomock.Call

CreateFullSyncResponse indicates an expected call of CreateFullSyncResponse.

func (*MockRequestFactoryMockRecorder) CreateHeadUpdate added in v0.2.0

func (mr *MockRequestFactoryMockRecorder) CreateHeadUpdate(arg0, arg1 interface{}) *gomock.Call

CreateHeadUpdate indicates an expected call of CreateHeadUpdate.

func (*MockRequestFactoryMockRecorder) CreateNewTreeRequest added in v0.2.0

func (mr *MockRequestFactoryMockRecorder) CreateNewTreeRequest() *gomock.Call

CreateNewTreeRequest indicates an expected call of CreateNewTreeRequest.

type MockSyncClient added in v0.2.0

type MockSyncClient struct {
	// contains filtered or unexported fields
}

MockSyncClient is a mock of SyncClient interface.

func NewMockSyncClient added in v0.2.0

func NewMockSyncClient(ctrl *gomock.Controller) *MockSyncClient

NewMockSyncClient creates a new mock instance.

func (*MockSyncClient) Broadcast added in v0.2.0

func (m *MockSyncClient) Broadcast(arg0 *treechangeproto.TreeSyncMessage)

Broadcast mocks base method.

func (*MockSyncClient) CreateFullSyncRequest added in v0.2.0

func (m *MockSyncClient) CreateFullSyncRequest(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)

CreateFullSyncRequest mocks base method.

func (*MockSyncClient) CreateFullSyncResponse added in v0.2.0

func (m *MockSyncClient) CreateFullSyncResponse(arg0 objecttree.ObjectTree, arg1, arg2 []string) (*treechangeproto.TreeSyncMessage, error)

CreateFullSyncResponse mocks base method.

func (*MockSyncClient) CreateHeadUpdate added in v0.2.0

CreateHeadUpdate mocks base method.

func (*MockSyncClient) CreateNewTreeRequest added in v0.2.0

func (m *MockSyncClient) CreateNewTreeRequest() *treechangeproto.TreeSyncMessage

CreateNewTreeRequest mocks base method.

func (*MockSyncClient) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSyncClient) QueueRequest added in v0.2.0

func (m *MockSyncClient) QueueRequest(arg0, arg1 string, arg2 *treechangeproto.TreeSyncMessage) error

QueueRequest mocks base method.

func (*MockSyncClient) SendRequest added in v0.2.0

SendRequest mocks base method.

func (*MockSyncClient) SendUpdate added in v0.2.0

func (m *MockSyncClient) SendUpdate(arg0, arg1 string, arg2 *treechangeproto.TreeSyncMessage) error

SendUpdate mocks base method.

type MockSyncClientMockRecorder added in v0.2.0

type MockSyncClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockSyncClientMockRecorder is the mock recorder for MockSyncClient.

func (*MockSyncClientMockRecorder) Broadcast added in v0.2.0

func (mr *MockSyncClientMockRecorder) Broadcast(arg0 interface{}) *gomock.Call

Broadcast indicates an expected call of Broadcast.

func (*MockSyncClientMockRecorder) CreateFullSyncRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateFullSyncRequest(arg0, arg1, arg2 interface{}) *gomock.Call

CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.

func (*MockSyncClientMockRecorder) CreateFullSyncResponse added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateFullSyncResponse(arg0, arg1, arg2 interface{}) *gomock.Call

CreateFullSyncResponse indicates an expected call of CreateFullSyncResponse.

func (*MockSyncClientMockRecorder) CreateHeadUpdate added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateHeadUpdate(arg0, arg1 interface{}) *gomock.Call

CreateHeadUpdate indicates an expected call of CreateHeadUpdate.

func (*MockSyncClientMockRecorder) CreateNewTreeRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateNewTreeRequest() *gomock.Call

CreateNewTreeRequest indicates an expected call of CreateNewTreeRequest.

func (*MockSyncClientMockRecorder) QueueRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) QueueRequest(arg0, arg1, arg2 interface{}) *gomock.Call

QueueRequest indicates an expected call of QueueRequest.

func (*MockSyncClientMockRecorder) SendRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) SendRequest(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendRequest indicates an expected call of SendRequest.

func (*MockSyncClientMockRecorder) SendUpdate added in v0.2.0

func (mr *MockSyncClientMockRecorder) SendUpdate(arg0, arg1, arg2 interface{}) *gomock.Call

SendUpdate indicates an expected call of SendUpdate.

type MockSyncTree

type MockSyncTree struct {
	// contains filtered or unexported fields
}

MockSyncTree is a mock of SyncTree interface.

func NewMockSyncTree

func NewMockSyncTree(ctrl *gomock.Controller) *MockSyncTree

NewMockSyncTree creates a new mock instance.

func (*MockSyncTree) AclList

func (m *MockSyncTree) AclList() list.AclList

AclList mocks base method.

func (*MockSyncTree) AddContent

AddContent mocks base method.

func (*MockSyncTree) AddRawChanges

AddRawChanges mocks base method.

func (*MockSyncTree) ChangeInfo

func (m *MockSyncTree) ChangeInfo() *treechangeproto.TreeChangeInfo

ChangeInfo mocks base method.

func (*MockSyncTree) ChangesAfterCommonSnapshot

func (m *MockSyncTree) ChangesAfterCommonSnapshot(arg0, arg1 []string) ([]*treechangeproto.RawTreeChangeWithId, error)

ChangesAfterCommonSnapshot mocks base method.

func (*MockSyncTree) Close

func (m *MockSyncTree) Close() error

Close mocks base method.

func (*MockSyncTree) Debug

Debug mocks base method.

func (*MockSyncTree) Delete

func (m *MockSyncTree) Delete() error

Delete mocks base method.

func (*MockSyncTree) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSyncTree) GetChange

func (m *MockSyncTree) GetChange(arg0 string) (*objecttree.Change, error)

GetChange mocks base method.

func (*MockSyncTree) HandleMessage

func (m *MockSyncTree) HandleMessage(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error

HandleMessage mocks base method.

func (*MockSyncTree) HandleRequest added in v0.2.0

HandleRequest mocks base method.

func (*MockSyncTree) HasChanges

func (m *MockSyncTree) HasChanges(arg0 ...string) bool

HasChanges mocks base method.

func (*MockSyncTree) Header

Header mocks base method.

func (*MockSyncTree) Heads

func (m *MockSyncTree) Heads() []string

Heads mocks base method.

func (*MockSyncTree) Id

func (m *MockSyncTree) Id() string

Id mocks base method.

func (*MockSyncTree) IterateFrom

func (m *MockSyncTree) IterateFrom(arg0 string, arg1 func(*objecttree.Change, []byte) (interface{}, error), arg2 func(*objecttree.Change) bool) error

IterateFrom mocks base method.

func (*MockSyncTree) IterateRoot

func (m *MockSyncTree) IterateRoot(arg0 func(*objecttree.Change, []byte) (interface{}, error), arg1 func(*objecttree.Change) bool) error

IterateRoot mocks base method.

func (*MockSyncTree) Len

func (m *MockSyncTree) Len() int

Len mocks base method.

func (*MockSyncTree) Lock

func (m *MockSyncTree) Lock()

Lock mocks base method.

func (*MockSyncTree) PrepareChange

PrepareChange mocks base method.

func (*MockSyncTree) RLock

func (m *MockSyncTree) RLock()

RLock mocks base method.

func (*MockSyncTree) RUnlock

func (m *MockSyncTree) RUnlock()

RUnlock mocks base method.

func (*MockSyncTree) Root

func (m *MockSyncTree) Root() *objecttree.Change

Root mocks base method.

func (*MockSyncTree) SetListener

func (m *MockSyncTree) SetListener(arg0 updatelistener.UpdateListener)

SetListener mocks base method.

func (*MockSyncTree) SnapshotPath

func (m *MockSyncTree) SnapshotPath() []string

SnapshotPath mocks base method.

func (*MockSyncTree) Storage

func (m *MockSyncTree) Storage() treestorage.TreeStorage

Storage mocks base method.

func (*MockSyncTree) SyncWithPeer

func (m *MockSyncTree) SyncWithPeer(arg0 context.Context, arg1 string) error

SyncWithPeer mocks base method.

func (*MockSyncTree) TryClose

func (m *MockSyncTree) TryClose(arg0 time.Duration) (bool, error)

TryClose mocks base method.

func (*MockSyncTree) TryLock

func (m *MockSyncTree) TryLock() bool

TryLock mocks base method.

func (*MockSyncTree) TryRLock

func (m *MockSyncTree) TryRLock() bool

TryRLock mocks base method.

func (*MockSyncTree) Unlock

func (m *MockSyncTree) Unlock()

Unlock mocks base method.

func (*MockSyncTree) UnmarshalledHeader

func (m *MockSyncTree) UnmarshalledHeader() *objecttree.Change

UnmarshalledHeader mocks base method.

func (*MockSyncTree) UnpackChange

func (m *MockSyncTree) UnpackChange(arg0 *treechangeproto.RawTreeChangeWithId) ([]byte, error)

UnpackChange mocks base method.

type MockSyncTreeMockRecorder

type MockSyncTreeMockRecorder struct {
	// contains filtered or unexported fields
}

MockSyncTreeMockRecorder is the mock recorder for MockSyncTree.

func (*MockSyncTreeMockRecorder) AclList

func (mr *MockSyncTreeMockRecorder) AclList() *gomock.Call

AclList indicates an expected call of AclList.

func (*MockSyncTreeMockRecorder) AddContent

func (mr *MockSyncTreeMockRecorder) AddContent(arg0, arg1 interface{}) *gomock.Call

AddContent indicates an expected call of AddContent.

func (*MockSyncTreeMockRecorder) AddRawChanges

func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 interface{}) *gomock.Call

AddRawChanges indicates an expected call of AddRawChanges.

func (*MockSyncTreeMockRecorder) ChangeInfo

func (mr *MockSyncTreeMockRecorder) ChangeInfo() *gomock.Call

ChangeInfo indicates an expected call of ChangeInfo.

func (*MockSyncTreeMockRecorder) ChangesAfterCommonSnapshot

func (mr *MockSyncTreeMockRecorder) ChangesAfterCommonSnapshot(arg0, arg1 interface{}) *gomock.Call

ChangesAfterCommonSnapshot indicates an expected call of ChangesAfterCommonSnapshot.

func (*MockSyncTreeMockRecorder) Close

func (mr *MockSyncTreeMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockSyncTreeMockRecorder) Debug

func (mr *MockSyncTreeMockRecorder) Debug(arg0 interface{}) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockSyncTreeMockRecorder) Delete

func (mr *MockSyncTreeMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSyncTreeMockRecorder) GetChange

func (mr *MockSyncTreeMockRecorder) GetChange(arg0 interface{}) *gomock.Call

GetChange indicates an expected call of GetChange.

func (*MockSyncTreeMockRecorder) HandleMessage

func (mr *MockSyncTreeMockRecorder) HandleMessage(arg0, arg1, arg2 interface{}) *gomock.Call

HandleMessage indicates an expected call of HandleMessage.

func (*MockSyncTreeMockRecorder) HandleRequest added in v0.2.0

func (mr *MockSyncTreeMockRecorder) HandleRequest(arg0, arg1, arg2 interface{}) *gomock.Call

HandleRequest indicates an expected call of HandleRequest.

func (*MockSyncTreeMockRecorder) HasChanges

func (mr *MockSyncTreeMockRecorder) HasChanges(arg0 ...interface{}) *gomock.Call

HasChanges indicates an expected call of HasChanges.

func (*MockSyncTreeMockRecorder) Header

func (mr *MockSyncTreeMockRecorder) Header() *gomock.Call

Header indicates an expected call of Header.

func (*MockSyncTreeMockRecorder) Heads

func (mr *MockSyncTreeMockRecorder) Heads() *gomock.Call

Heads indicates an expected call of Heads.

func (*MockSyncTreeMockRecorder) Id

Id indicates an expected call of Id.

func (*MockSyncTreeMockRecorder) IterateFrom

func (mr *MockSyncTreeMockRecorder) IterateFrom(arg0, arg1, arg2 interface{}) *gomock.Call

IterateFrom indicates an expected call of IterateFrom.

func (*MockSyncTreeMockRecorder) IterateRoot

func (mr *MockSyncTreeMockRecorder) IterateRoot(arg0, arg1 interface{}) *gomock.Call

IterateRoot indicates an expected call of IterateRoot.

func (*MockSyncTreeMockRecorder) Len

Len indicates an expected call of Len.

func (*MockSyncTreeMockRecorder) Lock

func (mr *MockSyncTreeMockRecorder) Lock() *gomock.Call

Lock indicates an expected call of Lock.

func (*MockSyncTreeMockRecorder) PrepareChange

func (mr *MockSyncTreeMockRecorder) PrepareChange(arg0 interface{}) *gomock.Call

PrepareChange indicates an expected call of PrepareChange.

func (*MockSyncTreeMockRecorder) RLock

func (mr *MockSyncTreeMockRecorder) RLock() *gomock.Call

RLock indicates an expected call of RLock.

func (*MockSyncTreeMockRecorder) RUnlock

func (mr *MockSyncTreeMockRecorder) RUnlock() *gomock.Call

RUnlock indicates an expected call of RUnlock.

func (*MockSyncTreeMockRecorder) Root

func (mr *MockSyncTreeMockRecorder) Root() *gomock.Call

Root indicates an expected call of Root.

func (*MockSyncTreeMockRecorder) SetListener

func (mr *MockSyncTreeMockRecorder) SetListener(arg0 interface{}) *gomock.Call

SetListener indicates an expected call of SetListener.

func (*MockSyncTreeMockRecorder) SnapshotPath

func (mr *MockSyncTreeMockRecorder) SnapshotPath() *gomock.Call

SnapshotPath indicates an expected call of SnapshotPath.

func (*MockSyncTreeMockRecorder) Storage

func (mr *MockSyncTreeMockRecorder) Storage() *gomock.Call

Storage indicates an expected call of Storage.

func (*MockSyncTreeMockRecorder) SyncWithPeer

func (mr *MockSyncTreeMockRecorder) SyncWithPeer(arg0, arg1 interface{}) *gomock.Call

SyncWithPeer indicates an expected call of SyncWithPeer.

func (*MockSyncTreeMockRecorder) TryClose

func (mr *MockSyncTreeMockRecorder) TryClose(arg0 interface{}) *gomock.Call

TryClose indicates an expected call of TryClose.

func (*MockSyncTreeMockRecorder) TryLock

func (mr *MockSyncTreeMockRecorder) TryLock() *gomock.Call

TryLock indicates an expected call of TryLock.

func (*MockSyncTreeMockRecorder) TryRLock

func (mr *MockSyncTreeMockRecorder) TryRLock() *gomock.Call

TryRLock indicates an expected call of TryRLock.

func (*MockSyncTreeMockRecorder) Unlock

func (mr *MockSyncTreeMockRecorder) Unlock() *gomock.Call

Unlock indicates an expected call of Unlock.

func (*MockSyncTreeMockRecorder) UnmarshalledHeader

func (mr *MockSyncTreeMockRecorder) UnmarshalledHeader() *gomock.Call

UnmarshalledHeader indicates an expected call of UnmarshalledHeader.

func (*MockSyncTreeMockRecorder) UnpackChange

func (mr *MockSyncTreeMockRecorder) UnpackChange(arg0 interface{}) *gomock.Call

UnpackChange indicates an expected call of UnpackChange.

type MockTreeSyncProtocol added in v0.2.0

type MockTreeSyncProtocol struct {
	// contains filtered or unexported fields
}

MockTreeSyncProtocol is a mock of TreeSyncProtocol interface.

func NewMockTreeSyncProtocol added in v0.2.0

func NewMockTreeSyncProtocol(ctrl *gomock.Controller) *MockTreeSyncProtocol

NewMockTreeSyncProtocol creates a new mock instance.

func (*MockTreeSyncProtocol) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTreeSyncProtocol) FullSyncRequest added in v0.2.0

FullSyncRequest mocks base method.

func (*MockTreeSyncProtocol) FullSyncResponse added in v0.2.0

func (m *MockTreeSyncProtocol) FullSyncResponse(arg0 context.Context, arg1 string, arg2 *treechangeproto.TreeFullSyncResponse) error

FullSyncResponse mocks base method.

func (*MockTreeSyncProtocol) HeadUpdate added in v0.2.0

HeadUpdate mocks base method.

type MockTreeSyncProtocolMockRecorder added in v0.2.0

type MockTreeSyncProtocolMockRecorder struct {
	// contains filtered or unexported fields
}

MockTreeSyncProtocolMockRecorder is the mock recorder for MockTreeSyncProtocol.

func (*MockTreeSyncProtocolMockRecorder) FullSyncRequest added in v0.2.0

func (mr *MockTreeSyncProtocolMockRecorder) FullSyncRequest(arg0, arg1, arg2 interface{}) *gomock.Call

FullSyncRequest indicates an expected call of FullSyncRequest.

func (*MockTreeSyncProtocolMockRecorder) FullSyncResponse added in v0.2.0

func (mr *MockTreeSyncProtocolMockRecorder) FullSyncResponse(arg0, arg1, arg2 interface{}) *gomock.Call

FullSyncResponse indicates an expected call of FullSyncResponse.

func (*MockTreeSyncProtocolMockRecorder) HeadUpdate added in v0.2.0

func (mr *MockTreeSyncProtocolMockRecorder) HeadUpdate(arg0, arg1, arg2 interface{}) *gomock.Call

HeadUpdate indicates an expected call of HeadUpdate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL