# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
InitLogger initializes the logger for test.
InitRegions is used for test purpose.
MustPutRegion is used for test purpose.
MustPutRegionInfo is used for test purpose.
MustPutStore is used for test purpose.
MustReportBuckets is used for test purpose.
NewSchedulingTestEnvironment is to create a new SchedulingTestEnvironment.
NewSchedulingTestServer creates a scheduling server with given config for testing.
NewTestAPICluster creates a new TestCluster with API service.
NewTestAPIServer creates a new TestServer.
NewTestCluster creates a new TestCluster.
NewTestSchedulingCluster creates a new scheduling test cluster.
NewTestServer creates a new TestServer.
NewTestTSOCluster creates a new TSO test cluster.
NewTSOTestServer creates a tso server with given config for testing.
RestartTestAPICluster restarts the API test cluster.
RestartTestTSOCluster restarts the TSO test cluster.
RunServer starts to run TestServer.
RunServers starts to run multiple TestServer.
SetRangePort sets the range of ports for test.
StartSingleSchedulingTestServer creates and starts a scheduling server with default config for testing.
StartSingleTSOTestServer creates and starts a tso server with default config for testing.
StartSingleTSOTestServerWithoutCheck creates and starts a tso server with default config for testing.
WaitForPrimaryServing waits for one of servers being elected to be the primary/leader.
WithRetryTimes indicates the retry times.
WithWaitInterval indicates the wait interval.
# Variables
TestDialClient is a http client for test.
WaitLeaderCheckInterval represents the time interval of WaitLeader running check.
WaitLeaderRetryTimes represents the maximum number of loops of WaitLeader.
WaitLeaderReturnDelay represents the time interval of WaitLeader sleep before returning.
# Structs
SchedulingTestEnvironment is used for test purpose.
TestCluster is only for test.
TestSchedulingCluster is a test cluster for scheduling.
TestServer is only for test.
TestTSOCluster is a test cluster for TSO.
WaitOp represent the wait configuration.
# Type aliases
ConfigOption is used to define customize settings in test.
SchedulerMode is used for test purpose.
WaitOption represent the wait configuration.