mock_incr

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_incr is a generated GoMock package.

Index

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

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

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

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

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) Close

func (m *MockIncrValueStore) Close()

Close 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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL