Documentation ¶
Index ¶
- func CheckRegionsInfo(c *check.C, output api.RegionsInfo, expected []*core.RegionInfo)
- func CheckStoresInfo(c *check.C, stores []*api.StoreInfo, want []*metapb.Store)
- func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output []byte, err error)
- func GetEcho(args []string) string
- func InitCommand() *cobra.Command
- func MustPutRegion(c *check.C, cluster *tests.TestCluster, regionID, storeID uint64, ...) *core.RegionInfo
- func MustPutStore(c *check.C, svr *server.Server, id uint64, state metapb.StoreState, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRegionsInfo ¶
func CheckRegionsInfo(c *check.C, output api.RegionsInfo, expected []*core.RegionInfo)
CheckRegionsInfo is used to check the test results.
func CheckStoresInfo ¶
CheckStoresInfo is used to check the test results.
func ExecuteCommandC ¶
func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output []byte, err error)
ExecuteCommandC is used for test purpose.
func MustPutRegion ¶
func MustPutRegion(c *check.C, cluster *tests.TestCluster, regionID, storeID uint64, start, end []byte, opts ...core.RegionCreateOption) *core.RegionInfo
MustPutRegion is used for test purpose.
func MustPutStore ¶
func MustPutStore(c *check.C, svr *server.Server, id uint64, state metapb.StoreState, labels []*metapb.StoreLabel)
MustPutStore is used for test purpose.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.