Documentation ¶
Overview ¶
Package mock_treestorage is a generated GoMock package.
Index ¶
- type MockTreeStorage
- func (m *MockTreeStorage) AddRawChange(change *treechangeproto.RawTreeChangeWithId) error
- func (m *MockTreeStorage) AddRawChangesSetHeads(changes []*treechangeproto.RawTreeChangeWithId, heads []string) error
- func (m *MockTreeStorage) Delete() error
- func (m *MockTreeStorage) EXPECT() *MockTreeStorageMockRecorder
- func (m *MockTreeStorage) GetAllChangeIds() ([]string, error)
- func (m *MockTreeStorage) GetAppendRawChange(ctx context.Context, buf []byte, id string) (*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockTreeStorage) GetRawChange(ctx context.Context, id string) (*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockTreeStorage) HasChange(ctx context.Context, id string) (bool, error)
- func (m *MockTreeStorage) Heads() ([]string, error)
- func (m *MockTreeStorage) Id() string
- func (m *MockTreeStorage) Root() (*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockTreeStorage) SetHeads(heads []string) error
- type MockTreeStorageMockRecorder
- func (mr *MockTreeStorageMockRecorder) AddRawChange(change any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) AddRawChangesSetHeads(changes, heads any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) Delete() *gomock.Call
- func (mr *MockTreeStorageMockRecorder) GetAllChangeIds() *gomock.Call
- func (mr *MockTreeStorageMockRecorder) GetAppendRawChange(ctx, buf, id any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) GetRawChange(ctx, id any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) HasChange(ctx, id any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) Heads() *gomock.Call
- func (mr *MockTreeStorageMockRecorder) Id() *gomock.Call
- func (mr *MockTreeStorageMockRecorder) Root() *gomock.Call
- func (mr *MockTreeStorageMockRecorder) SetHeads(heads any) *gomock.Call
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) EXPECT ¶
func (m *MockTreeStorage) EXPECT() *MockTreeStorageMockRecorder
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 ¶
func (m *MockTreeStorage) GetRawChange(ctx context.Context, id string) (*treechangeproto.RawTreeChangeWithId, error)
GetRawChange mocks base method.
func (*MockTreeStorage) Heads ¶
func (m *MockTreeStorage) Heads() ([]string, error)
Heads mocks base method.
func (*MockTreeStorage) Root ¶
func (m *MockTreeStorage) Root() (*treechangeproto.RawTreeChangeWithId, error)
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 ¶
func (mr *MockTreeStorageMockRecorder) Heads() *gomock.Call
Heads indicates an expected call of Heads.
func (*MockTreeStorageMockRecorder) Id ¶
func (mr *MockTreeStorageMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id.
func (*MockTreeStorageMockRecorder) Root ¶
func (mr *MockTreeStorageMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root.