mock_treestorage

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_treestorage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTreeStorage

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

MockTreeStorage is a mock of TreeStorage interface.

func NewMockTreeStorage

func NewMockTreeStorage(ctrl *gomock.Controller) *MockTreeStorage

NewMockTreeStorage creates a new mock instance.

func (*MockTreeStorage) AddRawChange

func (m *MockTreeStorage) AddRawChange(change *treechangeproto.RawTreeChangeWithId) error

AddRawChange mocks base method.

func (*MockTreeStorage) AddRawChangesSetHeads

func (m *MockTreeStorage) AddRawChangesSetHeads(changes []*treechangeproto.RawTreeChangeWithId, heads []string) error

AddRawChangesSetHeads mocks base method.

func (*MockTreeStorage) Delete

func (m *MockTreeStorage) Delete() error

Delete mocks base method.

func (*MockTreeStorage) EXPECT

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

func (*MockTreeStorage) GetAllChangeIds added in v0.5.0

func (m *MockTreeStorage) GetAllChangeIds() ([]string, error)

GetAllChangeIds mocks base method.

func (*MockTreeStorage) GetAppendRawChange added in v0.5.0

func (m *MockTreeStorage) GetAppendRawChange(ctx context.Context, buf []byte, id string) (*treechangeproto.RawTreeChangeWithId, error)

GetAppendRawChange mocks base method.

func (*MockTreeStorage) GetRawChange

GetRawChange mocks base method.

func (*MockTreeStorage) HasChange

func (m *MockTreeStorage) HasChange(ctx context.Context, id string) (bool, error)

HasChange mocks base method.

func (*MockTreeStorage) Heads

func (m *MockTreeStorage) Heads() ([]string, error)

Heads mocks base method.

func (*MockTreeStorage) Id

func (m *MockTreeStorage) Id() string

Id mocks base method.

func (*MockTreeStorage) Root

Root mocks base method.

func (*MockTreeStorage) SetHeads

func (m *MockTreeStorage) SetHeads(heads []string) error

SetHeads mocks base method.

type MockTreeStorageMockRecorder

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

MockTreeStorageMockRecorder is the mock recorder for MockTreeStorage.

func (*MockTreeStorageMockRecorder) AddRawChange

func (mr *MockTreeStorageMockRecorder) AddRawChange(change any) *gomock.Call

AddRawChange indicates an expected call of AddRawChange.

func (*MockTreeStorageMockRecorder) AddRawChangesSetHeads

func (mr *MockTreeStorageMockRecorder) AddRawChangesSetHeads(changes, heads any) *gomock.Call

AddRawChangesSetHeads indicates an expected call of AddRawChangesSetHeads.

func (*MockTreeStorageMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockTreeStorageMockRecorder) GetAllChangeIds added in v0.5.0

func (mr *MockTreeStorageMockRecorder) GetAllChangeIds() *gomock.Call

GetAllChangeIds indicates an expected call of GetAllChangeIds.

func (*MockTreeStorageMockRecorder) GetAppendRawChange added in v0.5.0

func (mr *MockTreeStorageMockRecorder) GetAppendRawChange(ctx, buf, id any) *gomock.Call

GetAppendRawChange indicates an expected call of GetAppendRawChange.

func (*MockTreeStorageMockRecorder) GetRawChange

func (mr *MockTreeStorageMockRecorder) GetRawChange(ctx, id any) *gomock.Call

GetRawChange indicates an expected call of GetRawChange.

func (*MockTreeStorageMockRecorder) HasChange

func (mr *MockTreeStorageMockRecorder) HasChange(ctx, id any) *gomock.Call

HasChange indicates an expected call of HasChange.

func (*MockTreeStorageMockRecorder) Heads

Heads indicates an expected call of Heads.

func (*MockTreeStorageMockRecorder) Id

Id indicates an expected call of Id.

func (*MockTreeStorageMockRecorder) Root

Root indicates an expected call of Root.

func (*MockTreeStorageMockRecorder) SetHeads

func (mr *MockTreeStorageMockRecorder) SetHeads(heads any) *gomock.Call

SetHeads indicates an expected call of SetHeads.

Jump to

Keyboard shortcuts

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