Documentation ¶
Overview ¶
Package mock_treestorage is a generated GoMock package.
Index ¶
- type MockTreeStorage
- func (m *MockTreeStorage) AddRawChange(arg0 *treechangeproto.RawTreeChangeWithId) error
- func (m *MockTreeStorage) AddRawChangesSetHeads(arg0 []*treechangeproto.RawTreeChangeWithId, arg1 []string) error
- func (m *MockTreeStorage) Delete() error
- func (m *MockTreeStorage) EXPECT() *MockTreeStorageMockRecorder
- func (m *MockTreeStorage) GetRawChange(arg0 context.Context, arg1 string) (*treechangeproto.RawTreeChangeWithId, error)
- func (m *MockTreeStorage) HasChange(arg0 context.Context, arg1 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(arg0 []string) error
- type MockTreeStorageMockRecorder
- func (mr *MockTreeStorageMockRecorder) AddRawChange(arg0 any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) AddRawChangesSetHeads(arg0, arg1 any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) Delete() *gomock.Call
- func (mr *MockTreeStorageMockRecorder) GetRawChange(arg0, arg1 any) *gomock.Call
- func (mr *MockTreeStorageMockRecorder) HasChange(arg0, arg1 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(arg0 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(arg0 *treechangeproto.RawTreeChangeWithId) error
AddRawChange mocks base method.
func (*MockTreeStorage) AddRawChangesSetHeads ¶
func (m *MockTreeStorage) AddRawChangesSetHeads(arg0 []*treechangeproto.RawTreeChangeWithId, arg1 []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) GetRawChange ¶
func (m *MockTreeStorage) GetRawChange(arg0 context.Context, arg1 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(arg0 []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(arg0 any) *gomock.Call
AddRawChange indicates an expected call of AddRawChange.
func (*MockTreeStorageMockRecorder) AddRawChangesSetHeads ¶
func (mr *MockTreeStorageMockRecorder) AddRawChangesSetHeads(arg0, arg1 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) GetRawChange ¶
func (mr *MockTreeStorageMockRecorder) GetRawChange(arg0, arg1 any) *gomock.Call
GetRawChange indicates an expected call of GetRawChange.
func (*MockTreeStorageMockRecorder) HasChange ¶
func (mr *MockTreeStorageMockRecorder) HasChange(arg0, arg1 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.