mocklocal

package
v1.1.0-beta.0...-d5b6b69 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/pingcap/tidb/pkg/lightning/backend/local (interfaces: DiskUsage,TiKVModeSwitcher,StoreHelper)

Generated by this command:

mockgen -package mocklocal github.com/pingcap/tidb/pkg/lightning/backend/local DiskUsage,TiKVModeSwitcher,StoreHelper

Package mocklocal is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDiskUsage

type MockDiskUsage struct {
	// contains filtered or unexported fields
}

MockDiskUsage is a mock of DiskUsage interface.

func NewMockDiskUsage

func NewMockDiskUsage(ctrl *gomock.Controller) *MockDiskUsage

NewMockDiskUsage creates a new mock instance.

func (*MockDiskUsage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDiskUsage) EngineFileSizes

func (m *MockDiskUsage) EngineFileSizes() []backend.EngineFileSize

EngineFileSizes mocks base method.

type MockDiskUsageMockRecorder

type MockDiskUsageMockRecorder struct {
	// contains filtered or unexported fields
}

MockDiskUsageMockRecorder is the mock recorder for MockDiskUsage.

func (*MockDiskUsageMockRecorder) EngineFileSizes

func (mr *MockDiskUsageMockRecorder) EngineFileSizes() *gomock.Call

EngineFileSizes indicates an expected call of EngineFileSizes.

type MockStoreHelper

type MockStoreHelper struct {
	// contains filtered or unexported fields
}

MockStoreHelper is a mock of StoreHelper interface.

func NewMockStoreHelper

func NewMockStoreHelper(ctrl *gomock.Controller) *MockStoreHelper

NewMockStoreHelper creates a new mock instance.

func (*MockStoreHelper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStoreHelper) GetTS

func (m *MockStoreHelper) GetTS(arg0 context.Context) (int64, int64, error)

GetTS mocks base method.

func (*MockStoreHelper) GetTiKVCodec

func (m *MockStoreHelper) GetTiKVCodec() tikv.Codec

GetTiKVCodec mocks base method.

type MockStoreHelperMockRecorder

type MockStoreHelperMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoreHelperMockRecorder is the mock recorder for MockStoreHelper.

func (*MockStoreHelperMockRecorder) GetTS

func (mr *MockStoreHelperMockRecorder) GetTS(arg0 any) *gomock.Call

GetTS indicates an expected call of GetTS.

func (*MockStoreHelperMockRecorder) GetTiKVCodec

func (mr *MockStoreHelperMockRecorder) GetTiKVCodec() *gomock.Call

GetTiKVCodec indicates an expected call of GetTiKVCodec.

type MockTiKVModeSwitcher

type MockTiKVModeSwitcher struct {
	// contains filtered or unexported fields
}

MockTiKVModeSwitcher is a mock of TiKVModeSwitcher interface.

func NewMockTiKVModeSwitcher

func NewMockTiKVModeSwitcher(ctrl *gomock.Controller) *MockTiKVModeSwitcher

NewMockTiKVModeSwitcher creates a new mock instance.

func (*MockTiKVModeSwitcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTiKVModeSwitcher) ToImportMode

func (m *MockTiKVModeSwitcher) ToImportMode(arg0 context.Context, arg1 ...*import_sstpb.Range)

ToImportMode mocks base method.

func (*MockTiKVModeSwitcher) ToNormalMode

func (m *MockTiKVModeSwitcher) ToNormalMode(arg0 context.Context, arg1 ...*import_sstpb.Range)

ToNormalMode mocks base method.

type MockTiKVModeSwitcherMockRecorder

type MockTiKVModeSwitcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockTiKVModeSwitcherMockRecorder is the mock recorder for MockTiKVModeSwitcher.

func (*MockTiKVModeSwitcherMockRecorder) ToImportMode

func (mr *MockTiKVModeSwitcherMockRecorder) ToImportMode(arg0 any, arg1 ...any) *gomock.Call

ToImportMode indicates an expected call of ToImportMode.

func (*MockTiKVModeSwitcherMockRecorder) ToNormalMode

func (mr *MockTiKVModeSwitcherMockRecorder) ToNormalMode(arg0 any, arg1 ...any) *gomock.Call

ToNormalMode indicates an expected call of ToNormalMode.

Jump to

Keyboard shortcuts

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