mock_synctree

package
v0.5.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 17 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 any) *gomock.Call

UpdateHeads indicates an expected call of UpdateHeads.

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 string, arg1 objecttree.ObjectTree) *objectmessages.Request

CreateFullSyncRequest 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(arg0, arg1 string) *objectmessages.Request

CreateNewTreeRequest mocks base method.

func (*MockRequestFactory) CreateResponseProducer added in v0.5.0

func (m *MockRequestFactory) CreateResponseProducer(arg0 objecttree.ObjectTree, arg1, arg2 []string) (synctree.ResponseProducer, error)

CreateResponseProducer 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 any) *gomock.Call

CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.

func (*MockRequestFactoryMockRecorder) CreateHeadUpdate added in v0.2.0

func (mr *MockRequestFactoryMockRecorder) CreateHeadUpdate(arg0, arg1, arg2 any) *gomock.Call

CreateHeadUpdate indicates an expected call of CreateHeadUpdate.

func (*MockRequestFactoryMockRecorder) CreateNewTreeRequest added in v0.2.0

func (mr *MockRequestFactoryMockRecorder) CreateNewTreeRequest(arg0, arg1 any) *gomock.Call

CreateNewTreeRequest indicates an expected call of CreateNewTreeRequest.

func (*MockRequestFactoryMockRecorder) CreateResponseProducer added in v0.5.0

func (mr *MockRequestFactoryMockRecorder) CreateResponseProducer(arg0, arg1, arg2 any) *gomock.Call

CreateResponseProducer indicates an expected call of CreateResponseProducer.

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 context.Context, arg1 *objectmessages.HeadUpdate) error

Broadcast mocks base method.

func (*MockSyncClient) CreateFullSyncRequest added in v0.2.0

func (m *MockSyncClient) CreateFullSyncRequest(arg0 string, arg1 objecttree.ObjectTree) *objectmessages.Request

CreateFullSyncRequest 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(arg0, arg1 string) *objectmessages.Request

CreateNewTreeRequest mocks base method.

func (*MockSyncClient) CreateResponseProducer added in v0.5.0

func (m *MockSyncClient) CreateResponseProducer(arg0 objecttree.ObjectTree, arg1, arg2 []string) (synctree.ResponseProducer, error)

CreateResponseProducer 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 context.Context, arg1 syncdeps.Request) error

QueueRequest mocks base method.

func (*MockSyncClient) SendTreeRequest added in v0.5.0

func (m *MockSyncClient) SendTreeRequest(arg0 context.Context, arg1 syncdeps.Request, arg2 syncdeps.ResponseCollector) error

SendTreeRequest 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, arg1 any) *gomock.Call

Broadcast indicates an expected call of Broadcast.

func (*MockSyncClientMockRecorder) CreateFullSyncRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateFullSyncRequest(arg0, arg1 any) *gomock.Call

CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.

func (*MockSyncClientMockRecorder) CreateHeadUpdate added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateHeadUpdate(arg0, arg1, arg2 any) *gomock.Call

CreateHeadUpdate indicates an expected call of CreateHeadUpdate.

func (*MockSyncClientMockRecorder) CreateNewTreeRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) CreateNewTreeRequest(arg0, arg1 any) *gomock.Call

CreateNewTreeRequest indicates an expected call of CreateNewTreeRequest.

func (*MockSyncClientMockRecorder) CreateResponseProducer added in v0.5.0

func (mr *MockSyncClientMockRecorder) CreateResponseProducer(arg0, arg1, arg2 any) *gomock.Call

CreateResponseProducer indicates an expected call of CreateResponseProducer.

func (*MockSyncClientMockRecorder) QueueRequest added in v0.2.0

func (mr *MockSyncClientMockRecorder) QueueRequest(arg0, arg1 any) *gomock.Call

QueueRequest indicates an expected call of QueueRequest.

func (*MockSyncClientMockRecorder) SendTreeRequest added in v0.5.0

func (mr *MockSyncClientMockRecorder) SendTreeRequest(arg0, arg1, arg2 any) *gomock.Call

SendTreeRequest indicates an expected call of SendTreeRequest.

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) AddRawChangesFromPeer added in v0.4.22

func (m *MockSyncTree) AddRawChangesFromPeer(arg0 context.Context, arg1 string, arg2 objecttree.RawChangesPayload) (objecttree.AddResult, error)

AddRawChangesFromPeer 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) ChangesAfterCommonSnapshotLoader added in v0.5.0

func (m *MockSyncTree) ChangesAfterCommonSnapshotLoader(arg0, arg1 []string) (objecttree.LoadIterator, error)

ChangesAfterCommonSnapshotLoader 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) HandleDeprecatedRequest added in v0.5.0

HandleDeprecatedRequest mocks base method.

func (*MockSyncTree) HandleHeadUpdate added in v0.5.0

func (m *MockSyncTree) HandleHeadUpdate(arg0 context.Context, arg1 syncstatus.StatusUpdater, arg2 drpc.Message) (syncdeps.Request, error)

HandleHeadUpdate mocks base method.

func (*MockSyncTree) HandleResponse added in v0.5.0

func (m *MockSyncTree) HandleResponse(arg0 context.Context, arg1, arg2 string, arg3 syncdeps.Response) error

HandleResponse mocks base method.

func (*MockSyncTree) HandleStreamRequest added in v0.5.0

func (m *MockSyncTree) HandleStreamRequest(arg0 context.Context, arg1 syncdeps.Request, arg2 syncdeps.QueueSizeUpdater, arg3 func(proto.Message) error) (syncdeps.Request, error)

HandleStreamRequest 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) IsDerived added in v0.3.2

func (m *MockSyncTree) IsDerived() bool

IsDerived mocks base method.

func (*MockSyncTree) IterateFrom

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

IterateFrom mocks base method.

func (*MockSyncTree) IterateRoot

func (m *MockSyncTree) IterateRoot(arg0 func(*objecttree.Change, []byte) (any, 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) ResponseCollector added in v0.5.0

func (m *MockSyncTree) ResponseCollector() syncdeps.ResponseCollector

ResponseCollector 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 peer.Peer) 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) 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 any) *gomock.Call

AddContent indicates an expected call of AddContent.

func (*MockSyncTreeMockRecorder) AddRawChanges

func (mr *MockSyncTreeMockRecorder) AddRawChanges(arg0, arg1 any) *gomock.Call

AddRawChanges indicates an expected call of AddRawChanges.

func (*MockSyncTreeMockRecorder) AddRawChangesFromPeer added in v0.4.22

func (mr *MockSyncTreeMockRecorder) AddRawChangesFromPeer(arg0, arg1, arg2 any) *gomock.Call

AddRawChangesFromPeer indicates an expected call of AddRawChangesFromPeer.

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 any) *gomock.Call

ChangesAfterCommonSnapshot indicates an expected call of ChangesAfterCommonSnapshot.

func (*MockSyncTreeMockRecorder) ChangesAfterCommonSnapshotLoader added in v0.5.0

func (mr *MockSyncTreeMockRecorder) ChangesAfterCommonSnapshotLoader(arg0, arg1 any) *gomock.Call

ChangesAfterCommonSnapshotLoader indicates an expected call of ChangesAfterCommonSnapshotLoader.

func (*MockSyncTreeMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockSyncTreeMockRecorder) Debug

func (mr *MockSyncTreeMockRecorder) Debug(arg0 any) *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 any) *gomock.Call

GetChange indicates an expected call of GetChange.

func (*MockSyncTreeMockRecorder) HandleDeprecatedRequest added in v0.5.0

func (mr *MockSyncTreeMockRecorder) HandleDeprecatedRequest(arg0, arg1 any) *gomock.Call

HandleDeprecatedRequest indicates an expected call of HandleDeprecatedRequest.

func (*MockSyncTreeMockRecorder) HandleHeadUpdate added in v0.5.0

func (mr *MockSyncTreeMockRecorder) HandleHeadUpdate(arg0, arg1, arg2 any) *gomock.Call

HandleHeadUpdate indicates an expected call of HandleHeadUpdate.

func (*MockSyncTreeMockRecorder) HandleResponse added in v0.5.0

func (mr *MockSyncTreeMockRecorder) HandleResponse(arg0, arg1, arg2, arg3 any) *gomock.Call

HandleResponse indicates an expected call of HandleResponse.

func (*MockSyncTreeMockRecorder) HandleStreamRequest added in v0.5.0

func (mr *MockSyncTreeMockRecorder) HandleStreamRequest(arg0, arg1, arg2, arg3 any) *gomock.Call

HandleStreamRequest indicates an expected call of HandleStreamRequest.

func (*MockSyncTreeMockRecorder) HasChanges

func (mr *MockSyncTreeMockRecorder) HasChanges(arg0 ...any) *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) IsDerived added in v0.3.2

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

IsDerived indicates an expected call of IsDerived.

func (*MockSyncTreeMockRecorder) IterateFrom

func (mr *MockSyncTreeMockRecorder) IterateFrom(arg0, arg1, arg2 any) *gomock.Call

IterateFrom indicates an expected call of IterateFrom.

func (*MockSyncTreeMockRecorder) IterateRoot

func (mr *MockSyncTreeMockRecorder) IterateRoot(arg0, arg1 any) *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 any) *gomock.Call

PrepareChange indicates an expected call of PrepareChange.

func (*MockSyncTreeMockRecorder) ResponseCollector added in v0.5.0

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

ResponseCollector indicates an expected call of ResponseCollector.

func (*MockSyncTreeMockRecorder) Root

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

Root indicates an expected call of Root.

func (*MockSyncTreeMockRecorder) SetListener

func (mr *MockSyncTreeMockRecorder) SetListener(arg0 any) *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 any) *gomock.Call

SyncWithPeer indicates an expected call of SyncWithPeer.

func (*MockSyncTreeMockRecorder) TryClose

func (mr *MockSyncTreeMockRecorder) TryClose(arg0 any) *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) 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 any) *gomock.Call

UnpackChange indicates an expected call of UnpackChange.

Jump to

Keyboard shortcuts

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