Versions in this module Expand all Collapse all v1 v1.1.9 Oct 1, 2018 Changes in this version + var TestClusterFactory serverutils.TestClusterFactory = testClusterFactoryImpl + type TestCluster struct + Conns []*gosql.DB + Servers []*server.TestServer + func StartTestCluster(t testing.TB, nodes int, args base.TestClusterArgs) *TestCluster + func (tc *TestCluster) AddReplicas(startKey roachpb.Key, targets ...roachpb.ReplicationTarget) (roachpb.RangeDescriptor, error) + func (tc *TestCluster) AddServer(t testing.TB, serverArgs base.TestServerArgs) + func (tc *TestCluster) FindRangeLease(rangeDesc roachpb.RangeDescriptor, hint *roachpb.ReplicationTarget) (_ roachpb.Lease, now hlc.Timestamp, _ error) + func (tc *TestCluster) FindRangeLeaseHolder(rangeDesc roachpb.RangeDescriptor, hint *roachpb.ReplicationTarget) (roachpb.ReplicationTarget, error) + func (tc *TestCluster) LookupRange(key roachpb.Key) (roachpb.RangeDescriptor, error) + func (tc *TestCluster) NumServers() int + func (tc *TestCluster) RemoveReplicas(startKey roachpb.Key, targets ...roachpb.ReplicationTarget) (roachpb.RangeDescriptor, error) + func (tc *TestCluster) Server(idx int) serverutils.TestServerInterface + func (tc *TestCluster) ServerConn(idx int) *gosql.DB + func (tc *TestCluster) SplitRange(splitKey roachpb.Key) (roachpb.RangeDescriptor, roachpb.RangeDescriptor, error) + func (tc *TestCluster) StopServer(idx int) + func (tc *TestCluster) Stopper() *stop.Stopper + func (tc *TestCluster) Target(serverIdx int) roachpb.ReplicationTarget + func (tc *TestCluster) TransferRangeLease(rangeDesc roachpb.RangeDescriptor, dest roachpb.ReplicationTarget) error + func (tc *TestCluster) WaitForFullReplication() error + func (tc *TestCluster) WaitForSplitAndReplication(startKey roachpb.Key) error + func (tc *TestCluster) WaitForStores(t testing.TB, g *gossip.Gossip) Incompatible versions in this module v19.2.12+incompatible Jan 12, 2021