package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CreateMockStore return a new mock kv.Storage.
CreateMockStoreAndDomain return a new mock kv.Storage and *domain.Domain.
CreateMockStoreAndDomainWithSchemaLease return a new mock kv.Storage and *domain.Domain.
CreateMockStoreWithSchemaLease return a new mock kv.Storage.
GetStack gets the stacktrace.
MockTiDBStatusPort mock the TiDB server status port to have metrics.
NewAsyncTestKit returns a new *AsyncTestKit.
NewDBTestKit returns a new *DBTestKit.
NewDistExecutionContext create DistExecutionContext for testing.
NewDistExecutionContextWithLease create DistExecutionContext for testing.
NewSession creates a new session environment for test.
NewSteppedTestKit creates a new SteppedTestKit.
NewTestKit returns a new *TestKit.
NewTestKitWithSession returns a new *TestKit.
Rows is similar to RowsWithSep, use white space as separator string.
RowsWithSep is a convenient function to wrap args to a slice of []interface.
SetTiFlashReplica is to set TiFlash replica.
TryRetrieveSession tries retrieve session from context.
WithPruneMode run test case under prune mode.
# Variables
WithTiKV flag is only used for debugging locally with real tikv cluster.
# Structs
AsyncTestKit is a utility to run sql concurrently.
DBTestKit is a utility to run sql with a db connection.
DistExecutionContext is the context that used in Distributed execution test for Dist task framework and DDL.
MockSessionManager is a mocked session manager which is used for test.
RegionProperityClient is to get region properties.
Result is the result returned by MustQuery.
SteppedTestKit is the testkit that can run stepped command.
TestKit is a utility to run sql test.