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 ¶
CreateMockStoreAndSetup return a new kv.Storage.
func RunTestMain ¶
RunTestMain run common setups for all real tikv tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.