Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockEngine
- func (m *MockEngine) Close() error
- func (m *MockEngine) Del(key []byte) error
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) Get(key []byte) (*common.Record, error)
- func (m *MockEngine) Iterate(prefix []byte, first bool, iterFunc func(*common.Record) bool)
- func (m *MockEngine) NewBatch() interface{}
- func (m *MockEngine) NewTx(autoFinish, renew bool) types.Tx
- func (m *MockEngine) Put(record *common.Record) error
- func (m *MockEngine) RawIterator(opts interface{}) interface{}
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) Close() *gomock.Call
- func (mr *MockEngineMockRecorder) Del(key interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Iterate(prefix, first, iterFunc interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) NewBatch() *gomock.Call
- func (mr *MockEngineMockRecorder) NewTx(autoFinish, renew interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Put(record interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RawIterator(opts interface{}) *gomock.Call
- type MockOperations
- func (m *MockOperations) Del(key []byte) error
- func (m *MockOperations) EXPECT() *MockOperationsMockRecorder
- func (m *MockOperations) Get(key []byte) (*common.Record, error)
- func (m *MockOperations) Iterate(prefix []byte, first bool, iterFunc func(*common.Record) bool)
- func (m *MockOperations) NewBatch() interface{}
- func (m *MockOperations) NewTx(autoFinish, renew bool) types.Tx
- func (m *MockOperations) Put(record *common.Record) error
- func (m *MockOperations) RawIterator(opts interface{}) interface{}
- type MockOperationsMockRecorder
- func (mr *MockOperationsMockRecorder) Del(key interface{}) *gomock.Call
- func (mr *MockOperationsMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockOperationsMockRecorder) Iterate(prefix, first, iterFunc interface{}) *gomock.Call
- func (mr *MockOperationsMockRecorder) NewBatch() *gomock.Call
- func (mr *MockOperationsMockRecorder) NewTx(autoFinish, renew interface{}) *gomock.Call
- func (mr *MockOperationsMockRecorder) Put(record interface{}) *gomock.Call
- func (mr *MockOperationsMockRecorder) RawIterator(opts interface{}) *gomock.Call
- type MockTx
- func (m *MockTx) CanFinish() bool
- func (m *MockTx) Commit() error
- func (m *MockTx) Del(key []byte) error
- func (m *MockTx) Discard()
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) Get(key []byte) (*common.Record, error)
- func (m *MockTx) Iterate(prefix []byte, first bool, iterFunc func(*common.Record) bool)
- func (m *MockTx) NewBatch() interface{}
- func (m *MockTx) NewTx(autoFinish, renew bool) types.Tx
- func (m *MockTx) Put(record *common.Record) error
- func (m *MockTx) RawIterator(opts interface{}) interface{}
- func (m *MockTx) RenewTx()
- type MockTxCommitDiscarder
- type MockTxCommitDiscarderMockRecorder
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) CanFinish() *gomock.Call
- func (mr *MockTxMockRecorder) Commit() *gomock.Call
- func (mr *MockTxMockRecorder) Del(key interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Discard() *gomock.Call
- func (mr *MockTxMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Iterate(prefix, first, iterFunc interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) NewBatch() *gomock.Call
- func (mr *MockTxMockRecorder) NewTx(autoFinish, renew interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Put(record interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) RawIterator(opts interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) RenewTx() *gomock.Call
- type MockTxRenewer
- type MockTxRenewerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEngine ¶
type MockEngine struct {
// contains filtered or unexported fields
}
MockEngine is a mock of Engine interface
func NewMockEngine ¶
func NewMockEngine(ctrl *gomock.Controller) *MockEngine
NewMockEngine creates a new mock instance
func (*MockEngine) EXPECT ¶
func (m *MockEngine) EXPECT() *MockEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEngine) Get ¶
func (m *MockEngine) Get(key []byte) (*common.Record, error)
Get mocks base method
func (*MockEngine) NewBatch ¶
func (m *MockEngine) NewBatch() interface{}
NewBatch mocks base method
func (*MockEngine) NewTx ¶
func (m *MockEngine) NewTx(autoFinish, renew bool) types.Tx
NewTx mocks base method
func (*MockEngine) Put ¶
func (m *MockEngine) Put(record *common.Record) error
Put mocks base method
func (*MockEngine) RawIterator ¶
func (m *MockEngine) RawIterator(opts interface{}) interface{}
RawIterator mocks base method
type MockEngineMockRecorder ¶
type MockEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockEngineMockRecorder is the mock recorder for MockEngine
func (*MockEngineMockRecorder) Close ¶
func (mr *MockEngineMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockEngineMockRecorder) Del ¶
func (mr *MockEngineMockRecorder) Del(key interface{}) *gomock.Call
Del indicates an expected call of Del
func (*MockEngineMockRecorder) Get ¶
func (mr *MockEngineMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockEngineMockRecorder) Iterate ¶
func (mr *MockEngineMockRecorder) Iterate(prefix, first, iterFunc interface{}) *gomock.Call
Iterate indicates an expected call of Iterate
func (*MockEngineMockRecorder) NewBatch ¶
func (mr *MockEngineMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch
func (*MockEngineMockRecorder) NewTx ¶
func (mr *MockEngineMockRecorder) NewTx(autoFinish, renew interface{}) *gomock.Call
NewTx indicates an expected call of NewTx
func (*MockEngineMockRecorder) Put ¶
func (mr *MockEngineMockRecorder) Put(record interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockEngineMockRecorder) RawIterator ¶
func (mr *MockEngineMockRecorder) RawIterator(opts interface{}) *gomock.Call
RawIterator indicates an expected call of RawIterator
type MockOperations ¶
type MockOperations struct {
// contains filtered or unexported fields
}
MockOperations is a mock of Operations interface
func NewMockOperations ¶
func NewMockOperations(ctrl *gomock.Controller) *MockOperations
NewMockOperations creates a new mock instance
func (*MockOperations) EXPECT ¶
func (m *MockOperations) EXPECT() *MockOperationsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOperations) Get ¶
func (m *MockOperations) Get(key []byte) (*common.Record, error)
Get mocks base method
func (*MockOperations) NewBatch ¶
func (m *MockOperations) NewBatch() interface{}
NewBatch mocks base method
func (*MockOperations) NewTx ¶
func (m *MockOperations) NewTx(autoFinish, renew bool) types.Tx
NewTx mocks base method
func (*MockOperations) Put ¶
func (m *MockOperations) Put(record *common.Record) error
Put mocks base method
func (*MockOperations) RawIterator ¶
func (m *MockOperations) RawIterator(opts interface{}) interface{}
RawIterator mocks base method
type MockOperationsMockRecorder ¶
type MockOperationsMockRecorder struct {
// contains filtered or unexported fields
}
MockOperationsMockRecorder is the mock recorder for MockOperations
func (*MockOperationsMockRecorder) Del ¶
func (mr *MockOperationsMockRecorder) Del(key interface{}) *gomock.Call
Del indicates an expected call of Del
func (*MockOperationsMockRecorder) Get ¶
func (mr *MockOperationsMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockOperationsMockRecorder) Iterate ¶
func (mr *MockOperationsMockRecorder) Iterate(prefix, first, iterFunc interface{}) *gomock.Call
Iterate indicates an expected call of Iterate
func (*MockOperationsMockRecorder) NewBatch ¶
func (mr *MockOperationsMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch
func (*MockOperationsMockRecorder) NewTx ¶
func (mr *MockOperationsMockRecorder) NewTx(autoFinish, renew interface{}) *gomock.Call
NewTx indicates an expected call of NewTx
func (*MockOperationsMockRecorder) Put ¶
func (mr *MockOperationsMockRecorder) Put(record interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockOperationsMockRecorder) RawIterator ¶
func (mr *MockOperationsMockRecorder) RawIterator(opts interface{}) *gomock.Call
RawIterator indicates an expected call of RawIterator
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) RawIterator ¶
func (m *MockTx) RawIterator(opts interface{}) interface{}
RawIterator mocks base method
type MockTxCommitDiscarder ¶
type MockTxCommitDiscarder struct {
// contains filtered or unexported fields
}
MockTxCommitDiscarder is a mock of TxCommitDiscarder interface
func NewMockTxCommitDiscarder ¶
func NewMockTxCommitDiscarder(ctrl *gomock.Controller) *MockTxCommitDiscarder
NewMockTxCommitDiscarder creates a new mock instance
func (*MockTxCommitDiscarder) CanFinish ¶
func (m *MockTxCommitDiscarder) CanFinish() bool
CanFinish mocks base method
func (*MockTxCommitDiscarder) Commit ¶
func (m *MockTxCommitDiscarder) Commit() error
Commit mocks base method
func (*MockTxCommitDiscarder) Discard ¶
func (m *MockTxCommitDiscarder) Discard()
Discard mocks base method
func (*MockTxCommitDiscarder) EXPECT ¶
func (m *MockTxCommitDiscarder) EXPECT() *MockTxCommitDiscarderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTxCommitDiscarderMockRecorder ¶
type MockTxCommitDiscarderMockRecorder struct {
// contains filtered or unexported fields
}
MockTxCommitDiscarderMockRecorder is the mock recorder for MockTxCommitDiscarder
func (*MockTxCommitDiscarderMockRecorder) CanFinish ¶
func (mr *MockTxCommitDiscarderMockRecorder) CanFinish() *gomock.Call
CanFinish indicates an expected call of CanFinish
func (*MockTxCommitDiscarderMockRecorder) Commit ¶
func (mr *MockTxCommitDiscarderMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTxCommitDiscarderMockRecorder) Discard ¶
func (mr *MockTxCommitDiscarderMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx
func (*MockTxMockRecorder) CanFinish ¶
func (mr *MockTxMockRecorder) CanFinish() *gomock.Call
CanFinish indicates an expected call of CanFinish
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTxMockRecorder) Del ¶
func (mr *MockTxMockRecorder) Del(key interface{}) *gomock.Call
Del indicates an expected call of Del
func (*MockTxMockRecorder) Discard ¶
func (mr *MockTxMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard
func (*MockTxMockRecorder) Get ¶
func (mr *MockTxMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockTxMockRecorder) Iterate ¶
func (mr *MockTxMockRecorder) Iterate(prefix, first, iterFunc interface{}) *gomock.Call
Iterate indicates an expected call of Iterate
func (*MockTxMockRecorder) NewBatch ¶
func (mr *MockTxMockRecorder) NewBatch() *gomock.Call
NewBatch indicates an expected call of NewBatch
func (*MockTxMockRecorder) NewTx ¶
func (mr *MockTxMockRecorder) NewTx(autoFinish, renew interface{}) *gomock.Call
NewTx indicates an expected call of NewTx
func (*MockTxMockRecorder) Put ¶
func (mr *MockTxMockRecorder) Put(record interface{}) *gomock.Call
Put indicates an expected call of Put
func (*MockTxMockRecorder) RawIterator ¶
func (mr *MockTxMockRecorder) RawIterator(opts interface{}) *gomock.Call
RawIterator indicates an expected call of RawIterator
func (*MockTxMockRecorder) RenewTx ¶
func (mr *MockTxMockRecorder) RenewTx() *gomock.Call
RenewTx indicates an expected call of RenewTx
type MockTxRenewer ¶
type MockTxRenewer struct {
// contains filtered or unexported fields
}
MockTxRenewer is a mock of TxRenewer interface
func NewMockTxRenewer ¶
func NewMockTxRenewer(ctrl *gomock.Controller) *MockTxRenewer
NewMockTxRenewer creates a new mock instance
func (*MockTxRenewer) EXPECT ¶
func (m *MockTxRenewer) EXPECT() *MockTxRenewerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTxRenewerMockRecorder ¶
type MockTxRenewerMockRecorder struct {
// contains filtered or unexported fields
}
MockTxRenewerMockRecorder is the mock recorder for MockTxRenewer
func (*MockTxRenewerMockRecorder) RenewTx ¶
func (mr *MockTxRenewerMockRecorder) RenewTx() *gomock.Call
RenewTx indicates an expected call of RenewTx