go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/vttablet/tabletserver/vstreamer/testenv Index | Files

package testenv

import "gopkg.in/src-d/go-vitess.v1/vt/vttablet/tabletserver/vstreamer/testenv"

Package testenv supplies test functions for testing vstreamer.

Index

Package Files

testenv.go

type Env Uses

type Env struct {
    KeyspaceName string
    ShardName    string
    Cells        []string

    TopoServ     *topo.Server
    SrvTopo      srvtopo.Server
    Dbcfgs       *dbconfigs.DBConfigs
    Mysqld       *mysqlctl.Mysqld
    SchemaEngine *schema.Engine
    // contains filtered or unexported fields
}

Env contains all the env vars for a test against a mysql instance.

func Init Uses

func Init() (*Env, error)

Init initializes an Env.

func (*Env) Close Uses

func (te *Env) Close()

Close tears down TestEnv.

func (*Env) SetVSchema Uses

func (te *Env) SetVSchema(vs string) error

SetVSchema sets the vschema for the test keyspace.

Package testenv imports 19 packages (graph). Updated 2019-06-16. Refresh now. Tools for package owners.