realtikvtest

package
v0.0.0-...-503c688 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 21 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")

	// 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")
)

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