testenv

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package testenv supplies test functions for testing vstreamer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

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

func Init() (*Env, error)

Init initializes an Env.

func (*Env) Close

func (te *Env) Close()

Close tears down TestEnv.

func (*Env) SetVSchema

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

SetVSchema sets the vschema for the test keyspace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL