mockstorage

package
v7.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockStorage

func NewMockStorage(tikvStore *tikv.KVStore) (kv.Storage, error)

NewMockStorage wraps tikv.KVStore as kv.Storage.

Types

type MockLockWaitSetter

type MockLockWaitSetter interface {
	SetMockLockWaits(lockWaits []*deadlockpb.WaitForEntry)
}

MockLockWaitSetter is used to set the mocked lock wait information, which helps implementing tests that uses the GetLockWaits function.

Jump to

Keyboard shortcuts

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