Documentation ¶
Overview ¶
Package mock_batch is a generated GoMock package.
Index ¶
- type MockCachedBatch
- func (m *MockCachedBatch) AddFillPercent(arg0 string, arg1 float64)
- func (m *MockCachedBatch) CheckFillPercent(arg0 string) (float64, bool)
- func (m *MockCachedBatch) Clear()
- func (m *MockCachedBatch) ClearAndUnlock()
- func (m *MockCachedBatch) Delete(arg0 string, arg1 []byte, arg2 string)
- func (m *MockCachedBatch) EXPECT() *MockCachedBatchMockRecorder
- func (m *MockCachedBatch) Entry(arg0 int) (*batch.WriteInfo, error)
- func (m *MockCachedBatch) Get(arg0 string, arg1 []byte) ([]byte, error)
- func (m *MockCachedBatch) Lock()
- func (m *MockCachedBatch) Put(arg0 string, arg1, arg2 []byte, arg3 string)
- func (m *MockCachedBatch) ResetSnapshots()
- func (m *MockCachedBatch) RevertSnapshot(arg0 int) error
- func (m *MockCachedBatch) SerializeQueue(arg0 batch.WriteInfoSerialize, arg1 batch.WriteInfoFilter) []byte
- func (m *MockCachedBatch) Size() int
- func (m *MockCachedBatch) Snapshot() int
- func (m *MockCachedBatch) Translate(arg0 batch.WriteInfoTranslate) batch.KVStoreBatch
- func (m *MockCachedBatch) Unlock()
- type MockCachedBatchMockRecorder
- func (mr *MockCachedBatchMockRecorder) AddFillPercent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) CheckFillPercent(arg0 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Clear() *gomock.Call
- func (mr *MockCachedBatchMockRecorder) ClearAndUnlock() *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Entry(arg0 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Lock() *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Put(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) ResetSnapshots() *gomock.Call
- func (mr *MockCachedBatchMockRecorder) RevertSnapshot(arg0 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) SerializeQueue(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Size() *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Snapshot() *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Translate(arg0 interface{}) *gomock.Call
- func (mr *MockCachedBatchMockRecorder) Unlock() *gomock.Call
- type MockKVStoreBatch
- func (m *MockKVStoreBatch) AddFillPercent(arg0 string, arg1 float64)
- func (m *MockKVStoreBatch) CheckFillPercent(arg0 string) (float64, bool)
- func (m *MockKVStoreBatch) Clear()
- func (m *MockKVStoreBatch) ClearAndUnlock()
- func (m *MockKVStoreBatch) Delete(arg0 string, arg1 []byte, arg2 string)
- func (m *MockKVStoreBatch) EXPECT() *MockKVStoreBatchMockRecorder
- func (m *MockKVStoreBatch) Entry(arg0 int) (*batch.WriteInfo, error)
- func (m *MockKVStoreBatch) Lock()
- func (m *MockKVStoreBatch) Put(arg0 string, arg1, arg2 []byte, arg3 string)
- func (m *MockKVStoreBatch) SerializeQueue(arg0 batch.WriteInfoSerialize, arg1 batch.WriteInfoFilter) []byte
- func (m *MockKVStoreBatch) Size() int
- func (m *MockKVStoreBatch) Translate(arg0 batch.WriteInfoTranslate) batch.KVStoreBatch
- func (m *MockKVStoreBatch) Unlock()
- type MockKVStoreBatchMockRecorder
- func (mr *MockKVStoreBatchMockRecorder) AddFillPercent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) CheckFillPercent(arg0 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Clear() *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) ClearAndUnlock() *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Entry(arg0 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Lock() *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Put(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) SerializeQueue(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Size() *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Translate(arg0 interface{}) *gomock.Call
- func (mr *MockKVStoreBatchMockRecorder) Unlock() *gomock.Call
- type MockSnapshot
- type MockSnapshotMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCachedBatch ¶
type MockCachedBatch struct {
// contains filtered or unexported fields
}
MockCachedBatch is a mock of CachedBatch interface.
func NewMockCachedBatch ¶
func NewMockCachedBatch(ctrl *gomock.Controller) *MockCachedBatch
NewMockCachedBatch creates a new mock instance.
func (*MockCachedBatch) AddFillPercent ¶
func (m *MockCachedBatch) AddFillPercent(arg0 string, arg1 float64)
AddFillPercent mocks base method.
func (*MockCachedBatch) CheckFillPercent ¶
func (m *MockCachedBatch) CheckFillPercent(arg0 string) (float64, bool)
CheckFillPercent mocks base method.
func (*MockCachedBatch) ClearAndUnlock ¶
func (m *MockCachedBatch) ClearAndUnlock()
ClearAndUnlock mocks base method.
func (*MockCachedBatch) Delete ¶
func (m *MockCachedBatch) Delete(arg0 string, arg1 []byte, arg2 string)
Delete mocks base method.
func (*MockCachedBatch) EXPECT ¶
func (m *MockCachedBatch) EXPECT() *MockCachedBatchMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCachedBatch) Entry ¶
func (m *MockCachedBatch) Entry(arg0 int) (*batch.WriteInfo, error)
Entry mocks base method.
func (*MockCachedBatch) Get ¶
func (m *MockCachedBatch) Get(arg0 string, arg1 []byte) ([]byte, error)
Get mocks base method.
func (*MockCachedBatch) Put ¶
func (m *MockCachedBatch) Put(arg0 string, arg1, arg2 []byte, arg3 string)
Put mocks base method.
func (*MockCachedBatch) ResetSnapshots ¶
func (m *MockCachedBatch) ResetSnapshots()
ResetSnapshots mocks base method.
func (*MockCachedBatch) RevertSnapshot ¶
func (m *MockCachedBatch) RevertSnapshot(arg0 int) error
RevertSnapshot mocks base method.
func (*MockCachedBatch) SerializeQueue ¶
func (m *MockCachedBatch) SerializeQueue(arg0 batch.WriteInfoSerialize, arg1 batch.WriteInfoFilter) []byte
SerializeQueue mocks base method.
func (*MockCachedBatch) Snapshot ¶
func (m *MockCachedBatch) Snapshot() int
Snapshot mocks base method.
func (*MockCachedBatch) Translate ¶
func (m *MockCachedBatch) Translate(arg0 batch.WriteInfoTranslate) batch.KVStoreBatch
Translate mocks base method.
type MockCachedBatchMockRecorder ¶
type MockCachedBatchMockRecorder struct {
// contains filtered or unexported fields
}
MockCachedBatchMockRecorder is the mock recorder for MockCachedBatch.
func (*MockCachedBatchMockRecorder) AddFillPercent ¶
func (mr *MockCachedBatchMockRecorder) AddFillPercent(arg0, arg1 interface{}) *gomock.Call
AddFillPercent indicates an expected call of AddFillPercent.
func (*MockCachedBatchMockRecorder) CheckFillPercent ¶
func (mr *MockCachedBatchMockRecorder) CheckFillPercent(arg0 interface{}) *gomock.Call
CheckFillPercent indicates an expected call of CheckFillPercent.
func (*MockCachedBatchMockRecorder) Clear ¶
func (mr *MockCachedBatchMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockCachedBatchMockRecorder) ClearAndUnlock ¶
func (mr *MockCachedBatchMockRecorder) ClearAndUnlock() *gomock.Call
ClearAndUnlock indicates an expected call of ClearAndUnlock.
func (*MockCachedBatchMockRecorder) Delete ¶
func (mr *MockCachedBatchMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCachedBatchMockRecorder) Entry ¶
func (mr *MockCachedBatchMockRecorder) Entry(arg0 interface{}) *gomock.Call
Entry indicates an expected call of Entry.
func (*MockCachedBatchMockRecorder) Get ¶
func (mr *MockCachedBatchMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCachedBatchMockRecorder) Lock ¶
func (mr *MockCachedBatchMockRecorder) Lock() *gomock.Call
Lock indicates an expected call of Lock.
func (*MockCachedBatchMockRecorder) Put ¶
func (mr *MockCachedBatchMockRecorder) Put(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockCachedBatchMockRecorder) ResetSnapshots ¶
func (mr *MockCachedBatchMockRecorder) ResetSnapshots() *gomock.Call
ResetSnapshots indicates an expected call of ResetSnapshots.
func (*MockCachedBatchMockRecorder) RevertSnapshot ¶
func (mr *MockCachedBatchMockRecorder) RevertSnapshot(arg0 interface{}) *gomock.Call
RevertSnapshot indicates an expected call of RevertSnapshot.
func (*MockCachedBatchMockRecorder) SerializeQueue ¶
func (mr *MockCachedBatchMockRecorder) SerializeQueue(arg0, arg1 interface{}) *gomock.Call
SerializeQueue indicates an expected call of SerializeQueue.
func (*MockCachedBatchMockRecorder) Size ¶
func (mr *MockCachedBatchMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size.
func (*MockCachedBatchMockRecorder) Snapshot ¶
func (mr *MockCachedBatchMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot.
func (*MockCachedBatchMockRecorder) Translate ¶
func (mr *MockCachedBatchMockRecorder) Translate(arg0 interface{}) *gomock.Call
Translate indicates an expected call of Translate.
func (*MockCachedBatchMockRecorder) Unlock ¶
func (mr *MockCachedBatchMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock.
type MockKVStoreBatch ¶
type MockKVStoreBatch struct {
// contains filtered or unexported fields
}
MockKVStoreBatch is a mock of KVStoreBatch interface.
func NewMockKVStoreBatch ¶
func NewMockKVStoreBatch(ctrl *gomock.Controller) *MockKVStoreBatch
NewMockKVStoreBatch creates a new mock instance.
func (*MockKVStoreBatch) AddFillPercent ¶
func (m *MockKVStoreBatch) AddFillPercent(arg0 string, arg1 float64)
AddFillPercent mocks base method.
func (*MockKVStoreBatch) CheckFillPercent ¶
func (m *MockKVStoreBatch) CheckFillPercent(arg0 string) (float64, bool)
CheckFillPercent mocks base method.
func (*MockKVStoreBatch) ClearAndUnlock ¶
func (m *MockKVStoreBatch) ClearAndUnlock()
ClearAndUnlock mocks base method.
func (*MockKVStoreBatch) Delete ¶
func (m *MockKVStoreBatch) Delete(arg0 string, arg1 []byte, arg2 string)
Delete mocks base method.
func (*MockKVStoreBatch) EXPECT ¶
func (m *MockKVStoreBatch) EXPECT() *MockKVStoreBatchMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKVStoreBatch) Entry ¶
func (m *MockKVStoreBatch) Entry(arg0 int) (*batch.WriteInfo, error)
Entry mocks base method.
func (*MockKVStoreBatch) Put ¶
func (m *MockKVStoreBatch) Put(arg0 string, arg1, arg2 []byte, arg3 string)
Put mocks base method.
func (*MockKVStoreBatch) SerializeQueue ¶
func (m *MockKVStoreBatch) SerializeQueue(arg0 batch.WriteInfoSerialize, arg1 batch.WriteInfoFilter) []byte
SerializeQueue mocks base method.
func (*MockKVStoreBatch) Translate ¶
func (m *MockKVStoreBatch) Translate(arg0 batch.WriteInfoTranslate) batch.KVStoreBatch
Translate mocks base method.
type MockKVStoreBatchMockRecorder ¶
type MockKVStoreBatchMockRecorder struct {
// contains filtered or unexported fields
}
MockKVStoreBatchMockRecorder is the mock recorder for MockKVStoreBatch.
func (*MockKVStoreBatchMockRecorder) AddFillPercent ¶
func (mr *MockKVStoreBatchMockRecorder) AddFillPercent(arg0, arg1 interface{}) *gomock.Call
AddFillPercent indicates an expected call of AddFillPercent.
func (*MockKVStoreBatchMockRecorder) CheckFillPercent ¶
func (mr *MockKVStoreBatchMockRecorder) CheckFillPercent(arg0 interface{}) *gomock.Call
CheckFillPercent indicates an expected call of CheckFillPercent.
func (*MockKVStoreBatchMockRecorder) Clear ¶
func (mr *MockKVStoreBatchMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockKVStoreBatchMockRecorder) ClearAndUnlock ¶
func (mr *MockKVStoreBatchMockRecorder) ClearAndUnlock() *gomock.Call
ClearAndUnlock indicates an expected call of ClearAndUnlock.
func (*MockKVStoreBatchMockRecorder) Delete ¶
func (mr *MockKVStoreBatchMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockKVStoreBatchMockRecorder) Entry ¶
func (mr *MockKVStoreBatchMockRecorder) Entry(arg0 interface{}) *gomock.Call
Entry indicates an expected call of Entry.
func (*MockKVStoreBatchMockRecorder) Lock ¶
func (mr *MockKVStoreBatchMockRecorder) Lock() *gomock.Call
Lock indicates an expected call of Lock.
func (*MockKVStoreBatchMockRecorder) Put ¶
func (mr *MockKVStoreBatchMockRecorder) Put(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockKVStoreBatchMockRecorder) SerializeQueue ¶
func (mr *MockKVStoreBatchMockRecorder) SerializeQueue(arg0, arg1 interface{}) *gomock.Call
SerializeQueue indicates an expected call of SerializeQueue.
func (*MockKVStoreBatchMockRecorder) Size ¶
func (mr *MockKVStoreBatchMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size.
func (*MockKVStoreBatchMockRecorder) Translate ¶
func (mr *MockKVStoreBatchMockRecorder) Translate(arg0 interface{}) *gomock.Call
Translate indicates an expected call of Translate.
func (*MockKVStoreBatchMockRecorder) Unlock ¶
func (mr *MockKVStoreBatchMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock.
type MockSnapshot ¶
type MockSnapshot struct {
// contains filtered or unexported fields
}
MockSnapshot is a mock of Snapshot interface.
func NewMockSnapshot ¶
func NewMockSnapshot(ctrl *gomock.Controller) *MockSnapshot
NewMockSnapshot creates a new mock instance.
func (*MockSnapshot) EXPECT ¶
func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnapshot) ResetSnapshots ¶
func (m *MockSnapshot) ResetSnapshots()
ResetSnapshots mocks base method.
func (*MockSnapshot) RevertSnapshot ¶
func (m *MockSnapshot) RevertSnapshot(arg0 int) error
RevertSnapshot mocks base method.
type MockSnapshotMockRecorder ¶
type MockSnapshotMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotMockRecorder is the mock recorder for MockSnapshot.
func (*MockSnapshotMockRecorder) ResetSnapshots ¶
func (mr *MockSnapshotMockRecorder) ResetSnapshots() *gomock.Call
ResetSnapshots indicates an expected call of ResetSnapshots.
func (*MockSnapshotMockRecorder) RevertSnapshot ¶
func (mr *MockSnapshotMockRecorder) RevertSnapshot(arg0 interface{}) *gomock.Call
RevertSnapshot indicates an expected call of RevertSnapshot.
func (*MockSnapshotMockRecorder) Snapshot ¶
func (mr *MockSnapshotMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot.