Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: internal/platform/storage/storage.go
Generated by this command:
mockgen -source=internal/platform/storage/storage.go -destination=internal/platform/storage/mock/storage.go -package=mock
Package mock is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) Get(key []byte) ([]byte, error)
- func (m *MockService) GetKeysWithPrefix(prefix []byte, reverse ...bool) ([][]byte, error)
- func (m *MockService) NewTransaction() storage.Tx
- func (m *MockService) Set(key, value []byte) error
- type MockServiceMockRecorder
- type MockTx
- func (m *MockTx) Commit() error
- func (m *MockTx) Delete(key []byte) error
- func (m *MockTx) Discard()
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) FilterKeysWithPrefix(prefix []byte, from, to string) [][]byte
- func (m *MockTx) Get(key []byte) ([]byte, error)
- func (m *MockTx) GetKeysWithPrefix(prefix []byte, reverse ...bool) [][]byte
- func (m *MockTx) GetValuesWithPrefix(prefix []byte, reverse ...bool) [][]byte
- func (m *MockTx) Set(key, value []byte) error
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) Commit() *gomock.Call
- func (mr *MockTxMockRecorder) Delete(key any) *gomock.Call
- func (mr *MockTxMockRecorder) Discard() *gomock.Call
- func (mr *MockTxMockRecorder) FilterKeysWithPrefix(prefix, from, to any) *gomock.Call
- func (mr *MockTxMockRecorder) Get(key any) *gomock.Call
- func (mr *MockTxMockRecorder) GetKeysWithPrefix(prefix any, reverse ...any) *gomock.Call
- func (mr *MockTxMockRecorder) GetValuesWithPrefix(prefix any, reverse ...any) *gomock.Call
- func (mr *MockTxMockRecorder) Set(key, value any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) Get ¶
func (m *MockService) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockService) GetKeysWithPrefix ¶
func (m *MockService) GetKeysWithPrefix(prefix []byte, reverse ...bool) ([][]byte, error)
GetKeysWithPrefix mocks base method.
func (*MockService) NewTransaction ¶
func (m *MockService) NewTransaction() storage.Tx
NewTransaction mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Get ¶
func (mr *MockServiceMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockServiceMockRecorder) GetKeysWithPrefix ¶
func (mr *MockServiceMockRecorder) GetKeysWithPrefix(prefix any, reverse ...any) *gomock.Call
GetKeysWithPrefix indicates an expected call of GetKeysWithPrefix.
func (*MockServiceMockRecorder) NewTransaction ¶
func (mr *MockServiceMockRecorder) NewTransaction() *gomock.Call
NewTransaction indicates an expected call of NewTransaction.
type MockTx ¶
type MockTx struct {
// contains filtered or unexported fields
}
MockTx is a mock of Tx interface.
func NewMockTx ¶
func NewMockTx(ctrl *gomock.Controller) *MockTx
NewMockTx creates a new mock instance.
func (*MockTx) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTx) FilterKeysWithPrefix ¶
FilterKeysWithPrefix mocks base method.
func (*MockTx) GetKeysWithPrefix ¶
GetKeysWithPrefix mocks base method.
func (*MockTx) GetValuesWithPrefix ¶
GetValuesWithPrefix mocks base method.
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx.
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTxMockRecorder) Delete ¶
func (mr *MockTxMockRecorder) Delete(key any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTxMockRecorder) Discard ¶
func (mr *MockTxMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockTxMockRecorder) FilterKeysWithPrefix ¶
func (mr *MockTxMockRecorder) FilterKeysWithPrefix(prefix, from, to any) *gomock.Call
FilterKeysWithPrefix indicates an expected call of FilterKeysWithPrefix.
func (*MockTxMockRecorder) Get ¶
func (mr *MockTxMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockTxMockRecorder) GetKeysWithPrefix ¶
func (mr *MockTxMockRecorder) GetKeysWithPrefix(prefix any, reverse ...any) *gomock.Call
GetKeysWithPrefix indicates an expected call of GetKeysWithPrefix.
func (*MockTxMockRecorder) GetValuesWithPrefix ¶
func (mr *MockTxMockRecorder) GetValuesWithPrefix(prefix any, reverse ...any) *gomock.Call
GetValuesWithPrefix indicates an expected call of GetValuesWithPrefix.