Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigKey ¶
type ConfigKey string
const ( GoshawkDB ConfigKey = "GOSHAWKDB_BINARY" ClusterConfig ConfigKey = "GOSHAWKDB_CLUSTER_CONFIG" ClusterHosts ConfigKey = "GOSHAWKDB_CLUSTER_HOSTS" ClusterCert ConfigKey = "GOSHAWKDB_CLUSTER_CERT" ClusterKeyPair ConfigKey = "GOSHAWKDB_CLUSTER_KEYPAIR" ClientKeyPair ConfigKey = "GOSHAWKDB_CLIENT_KEYPAIR" RootName ConfigKey = "GOSHAWKDB_ROOT_NAME" GoPath ConfigKey = "GOPATH" )
type Connection ¶
type Connection struct { *TestHelper log.Logger *client.Connection // contains filtered or unexported fields }
func (*Connection) AwaitRootVersionChange ¶
func (*Connection) SetRootToNZeroObjs ¶
func (conn *Connection) SetRootToNZeroObjs(n int) ([]byte, error)
type TestEnv ¶
type TestHelper ¶
type TestHelper struct { TestInterface ClusterHosts []string ClusterCert []byte ClientKeyPair []byte RootName string Rng *rand.Rand // contains filtered or unexported fields }
func NewHelper ¶
func NewHelper(t TestInterface) *TestHelper
func NewMainHelper ¶
func NewMainHelper() *TestHelper
func NewTestHelper ¶
func NewTestHelper(t *testing.T) *TestHelper
func (*TestHelper) CreateConnections ¶
func (th *TestHelper) CreateConnections(num int) []*Connection
func (*TestHelper) InParallel ¶
func (th *TestHelper) InParallel(n int, fun func(int, *Connection) error) (*sync.WaitGroup, chan error)
func (*TestHelper) MaybeFatal ¶
func (th *TestHelper) MaybeFatal(err error) error
func (*TestHelper) Shutdown ¶
func (th *TestHelper) Shutdown()
type TestHelperTxnResult ¶
type TestHelperTxnResult uint8
const Abort TestHelperTxnResult = iota
func (TestHelperTxnResult) Error ¶
func (self TestHelperTxnResult) Error() string
Click to show internal directories.
Click to hide internal directories.