Documentation ¶
Overview ¶
Package mock_incr is a generated GoMock package.
Index ¶
- type MockAutoIncrementService
- func (m *MockAutoIncrementService) Close()
- func (m *MockAutoIncrementService) Create(ctx context.Context, tableID uint64, caches []incrservice.AutoColumn, ...) error
- func (m *MockAutoIncrementService) CurrentValue(ctx context.Context, tableID uint64, col string) (uint64, error)
- func (m *MockAutoIncrementService) Delete(ctx context.Context, tableID uint64, txn client.TxnOperator) error
- func (m *MockAutoIncrementService) EXPECT() *MockAutoIncrementServiceMockRecorder
- func (m *MockAutoIncrementService) InsertValues(ctx context.Context, tableID uint64, bat *batch.Batch, estimate int64) (uint64, error)
- func (m *MockAutoIncrementService) Reload(ctx context.Context, tableID uint64) error
- func (m *MockAutoIncrementService) Reset(ctx context.Context, oldTableID, newTableID uint64, keep bool, ...) error
- func (m *MockAutoIncrementService) UUID() string
- type MockAutoIncrementServiceMockRecorder
- func (mr *MockAutoIncrementServiceMockRecorder) Close() *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) Create(ctx, tableID, caches, txn any) *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) CurrentValue(ctx, tableID, col any) *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) Delete(ctx, tableID, txn any) *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) InsertValues(ctx, tableID, bat, estimate any) *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) Reload(ctx, tableID any) *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) Reset(ctx, oldTableID, newTableID, keep, txn any) *gomock.Call
- func (mr *MockAutoIncrementServiceMockRecorder) UUID() *gomock.Call
- type MockIncrValueStore
- func (m *MockIncrValueStore) Allocate(ctx context.Context, tableID uint64, col string, count int, ...) (uint64, uint64, error)
- func (m *MockIncrValueStore) Close()
- func (m *MockIncrValueStore) Create(ctx context.Context, tableID uint64, cols []incrservice.AutoColumn, ...) error
- func (m *MockIncrValueStore) Delete(ctx context.Context, tableID uint64) error
- func (m *MockIncrValueStore) EXPECT() *MockIncrValueStoreMockRecorder
- func (m *MockIncrValueStore) GetColumns(ctx context.Context, tableID uint64, txnOp client.TxnOperator) ([]incrservice.AutoColumn, error)
- func (m *MockIncrValueStore) UpdateMinValue(ctx context.Context, tableID uint64, col string, minValue uint64, ...) error
- type MockIncrValueStoreMockRecorder
- func (mr *MockIncrValueStoreMockRecorder) Allocate(ctx, tableID, col, count, txnOp any) *gomock.Call
- func (mr *MockIncrValueStoreMockRecorder) Close() *gomock.Call
- func (mr *MockIncrValueStoreMockRecorder) Create(ctx, tableID, cols, txnOp any) *gomock.Call
- func (mr *MockIncrValueStoreMockRecorder) Delete(ctx, tableID any) *gomock.Call
- func (mr *MockIncrValueStoreMockRecorder) GetColumns(ctx, tableID, txnOp any) *gomock.Call
- func (mr *MockIncrValueStoreMockRecorder) UpdateMinValue(ctx, tableID, col, minValue, txnOp any) *gomock.Call
- type MockincrTableCache
- type MockincrTableCacheMockRecorder
- type MockvalueAllocator
- type MockvalueAllocatorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAutoIncrementService ¶
type MockAutoIncrementService struct {
// contains filtered or unexported fields
}
MockAutoIncrementService is a mock of AutoIncrementService interface.
func NewMockAutoIncrementService ¶
func NewMockAutoIncrementService(ctrl *gomock.Controller) *MockAutoIncrementService
NewMockAutoIncrementService creates a new mock instance.
func (*MockAutoIncrementService) Close ¶
func (m *MockAutoIncrementService) Close()
Close mocks base method.
func (*MockAutoIncrementService) Create ¶
func (m *MockAutoIncrementService) Create(ctx context.Context, tableID uint64, caches []incrservice.AutoColumn, txn client.TxnOperator) error
Create mocks base method.
func (*MockAutoIncrementService) CurrentValue ¶
func (m *MockAutoIncrementService) CurrentValue(ctx context.Context, tableID uint64, col string) (uint64, error)
CurrentValue mocks base method.
func (*MockAutoIncrementService) Delete ¶
func (m *MockAutoIncrementService) Delete(ctx context.Context, tableID uint64, txn client.TxnOperator) error
Delete mocks base method.
func (*MockAutoIncrementService) EXPECT ¶
func (m *MockAutoIncrementService) EXPECT() *MockAutoIncrementServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAutoIncrementService) InsertValues ¶
func (m *MockAutoIncrementService) InsertValues(ctx context.Context, tableID uint64, bat *batch.Batch, estimate int64) (uint64, error)
InsertValues mocks base method.
func (*MockAutoIncrementService) Reload ¶
func (m *MockAutoIncrementService) Reload(ctx context.Context, tableID uint64) error
Reload mocks base method.
func (*MockAutoIncrementService) Reset ¶
func (m *MockAutoIncrementService) Reset(ctx context.Context, oldTableID, newTableID uint64, keep bool, txn client.TxnOperator) error
Reset mocks base method.
func (*MockAutoIncrementService) UUID ¶
func (m *MockAutoIncrementService) UUID() string
UUID mocks base method.
type MockAutoIncrementServiceMockRecorder ¶
type MockAutoIncrementServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAutoIncrementServiceMockRecorder is the mock recorder for MockAutoIncrementService.
func (*MockAutoIncrementServiceMockRecorder) Close ¶
func (mr *MockAutoIncrementServiceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockAutoIncrementServiceMockRecorder) Create ¶
func (mr *MockAutoIncrementServiceMockRecorder) Create(ctx, tableID, caches, txn any) *gomock.Call
Create indicates an expected call of Create.
func (*MockAutoIncrementServiceMockRecorder) CurrentValue ¶
func (mr *MockAutoIncrementServiceMockRecorder) CurrentValue(ctx, tableID, col any) *gomock.Call
CurrentValue indicates an expected call of CurrentValue.
func (*MockAutoIncrementServiceMockRecorder) Delete ¶
func (mr *MockAutoIncrementServiceMockRecorder) Delete(ctx, tableID, txn any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAutoIncrementServiceMockRecorder) InsertValues ¶
func (mr *MockAutoIncrementServiceMockRecorder) InsertValues(ctx, tableID, bat, estimate any) *gomock.Call
InsertValues indicates an expected call of InsertValues.
func (*MockAutoIncrementServiceMockRecorder) Reload ¶
func (mr *MockAutoIncrementServiceMockRecorder) Reload(ctx, tableID any) *gomock.Call
Reload indicates an expected call of Reload.
func (*MockAutoIncrementServiceMockRecorder) Reset ¶
func (mr *MockAutoIncrementServiceMockRecorder) Reset(ctx, oldTableID, newTableID, keep, txn any) *gomock.Call
Reset indicates an expected call of Reset.
func (*MockAutoIncrementServiceMockRecorder) UUID ¶
func (mr *MockAutoIncrementServiceMockRecorder) UUID() *gomock.Call
UUID indicates an expected call of UUID.
type MockIncrValueStore ¶
type MockIncrValueStore struct {
// contains filtered or unexported fields
}
MockIncrValueStore is a mock of IncrValueStore interface.
func NewMockIncrValueStore ¶
func NewMockIncrValueStore(ctrl *gomock.Controller) *MockIncrValueStore
NewMockIncrValueStore creates a new mock instance.
func (*MockIncrValueStore) Allocate ¶
func (m *MockIncrValueStore) Allocate(ctx context.Context, tableID uint64, col string, count int, txnOp client.TxnOperator) (uint64, uint64, error)
Allocate mocks base method.
func (*MockIncrValueStore) Create ¶
func (m *MockIncrValueStore) Create(ctx context.Context, tableID uint64, cols []incrservice.AutoColumn, txnOp client.TxnOperator) error
Create mocks base method.
func (*MockIncrValueStore) Delete ¶
func (m *MockIncrValueStore) Delete(ctx context.Context, tableID uint64) error
Delete mocks base method.
func (*MockIncrValueStore) EXPECT ¶
func (m *MockIncrValueStore) EXPECT() *MockIncrValueStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIncrValueStore) GetColumns ¶
func (m *MockIncrValueStore) GetColumns(ctx context.Context, tableID uint64, txnOp client.TxnOperator) ([]incrservice.AutoColumn, error)
GetColumns mocks base method.
func (*MockIncrValueStore) UpdateMinValue ¶
func (m *MockIncrValueStore) UpdateMinValue(ctx context.Context, tableID uint64, col string, minValue uint64, txnOp client.TxnOperator) error
UpdateMinValue mocks base method.
type MockIncrValueStoreMockRecorder ¶
type MockIncrValueStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockIncrValueStoreMockRecorder is the mock recorder for MockIncrValueStore.
func (*MockIncrValueStoreMockRecorder) Allocate ¶
func (mr *MockIncrValueStoreMockRecorder) Allocate(ctx, tableID, col, count, txnOp any) *gomock.Call
Allocate indicates an expected call of Allocate.
func (*MockIncrValueStoreMockRecorder) Close ¶
func (mr *MockIncrValueStoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockIncrValueStoreMockRecorder) Create ¶
func (mr *MockIncrValueStoreMockRecorder) Create(ctx, tableID, cols, txnOp any) *gomock.Call
Create indicates an expected call of Create.
func (*MockIncrValueStoreMockRecorder) Delete ¶
func (mr *MockIncrValueStoreMockRecorder) Delete(ctx, tableID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIncrValueStoreMockRecorder) GetColumns ¶
func (mr *MockIncrValueStoreMockRecorder) GetColumns(ctx, tableID, txnOp any) *gomock.Call
GetColumns indicates an expected call of GetColumns.
func (*MockIncrValueStoreMockRecorder) UpdateMinValue ¶
func (mr *MockIncrValueStoreMockRecorder) UpdateMinValue(ctx, tableID, col, minValue, txnOp any) *gomock.Call
UpdateMinValue indicates an expected call of UpdateMinValue.
type MockincrTableCache ¶
type MockincrTableCache struct {
// contains filtered or unexported fields
}
MockincrTableCache is a mock of incrTableCache interface.
func NewMockincrTableCache ¶
func NewMockincrTableCache(ctrl *gomock.Controller) *MockincrTableCache
NewMockincrTableCache creates a new mock instance.
func (*MockincrTableCache) EXPECT ¶
func (m *MockincrTableCache) EXPECT() *MockincrTableCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockincrTableCacheMockRecorder ¶
type MockincrTableCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockincrTableCacheMockRecorder is the mock recorder for MockincrTableCache.
type MockvalueAllocator ¶
type MockvalueAllocator struct {
// contains filtered or unexported fields
}
MockvalueAllocator is a mock of valueAllocator interface.
func NewMockvalueAllocator ¶
func NewMockvalueAllocator(ctrl *gomock.Controller) *MockvalueAllocator
NewMockvalueAllocator creates a new mock instance.
func (*MockvalueAllocator) EXPECT ¶
func (m *MockvalueAllocator) EXPECT() *MockvalueAllocatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockvalueAllocatorMockRecorder ¶
type MockvalueAllocatorMockRecorder struct {
// contains filtered or unexported fields
}
MockvalueAllocatorMockRecorder is the mock recorder for MockvalueAllocator.