mockstore

package
v2.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// WithTiKV is the flag which indicates whether it runs with tikv.
	WithTiKV = flag.Bool("with-tikv", false, "run tests with TiKV cluster started. (not use the mock server)")
)

Functions

This section is empty.

Types

type OneByOneSuite

type OneByOneSuite struct{}

OneByOneSuite is a suite, When with-tikv flag is true, there is only one storage, so the test suite have to run one by one.

func (*OneByOneSuite) LockGlobalTiKV

func (s *OneByOneSuite) LockGlobalTiKV()

LockGlobalTiKV locks withTiKVGlobalLock.

func (*OneByOneSuite) SetUpSuite

func (s *OneByOneSuite) SetUpSuite(c *check.C)

SetUpSuite implements the interface check.Suite.

func (*OneByOneSuite) TearDownSuite

func (s *OneByOneSuite) TearDownSuite(c *check.C)

TearDownSuite implements the interface check.Suite.

func (*OneByOneSuite) UnLockGlobalTiKV

func (s *OneByOneSuite) UnLockGlobalTiKV()

UnLockGlobalTiKV unlocks withTiKVGlobalLock

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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