Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockStorage ¶
func NewMockStorage(tikvStore *tikv.KVStore, keyspaceMeta *keyspacepb.KeyspaceMeta) (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.
Click to show internal directories.
Click to hide internal directories.