realtikvtest

package
v1.1.0-beta.0...-40d2481 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WithRealTiKV is a flag identify whether tests run with real TiKV
	WithRealTiKV = flag.Bool("with-real-tikv", false, "whether tests run with real TiKV")

	// TiKVPath is the path of the TiKV Storage.
	TiKVPath = flag.String("tikv-path", "tikv://127.0.0.1:2379?disableGC=true", "TiKV addr")

	// PDAddr is the address of PD.
	PDAddr = "127.0.0.1:2379"

	// KeyspaceName is an option to specify the name of keyspace that the tests run on,
	// this option is only valid while the flag WithRealTiKV is set.
	KeyspaceName = flag.String("keyspace-name", "", "the name of keyspace that the tests run on")

	// RetainOldData is used to control whether a new realtikv store should remove old tables.
	RetainOldData = false
)

Functions

func CreateMockStoreAndDomainAndSetup

func CreateMockStoreAndDomainAndSetup(t *testing.T, opts ...mockstore.MockTiKVStoreOption) (kv.Storage, *domain.Domain)

CreateMockStoreAndDomainAndSetup return a new kv.Storage and *domain.Domain.

func CreateMockStoreAndSetup

func CreateMockStoreAndSetup(t *testing.T, opts ...mockstore.MockTiKVStoreOption) kv.Storage

CreateMockStoreAndSetup return a new kv.Storage.

func RunTestMain

func RunTestMain(m *testing.M)

RunTestMain run common setups for all real tikv tests.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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