testfiles

package
v3.0.0-rc.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testfiles locates test files within the Vitess directory tree. It also handles test port allocation.

Index

Constants

This section is empty.

Variables

View Source
var (

	// GoVtTopoEtcd2topoPort is used by the go/vt/topo/etcd2topo package.
	// Takes two ports.
	GoVtTopoEtcd2topoPort = vtPortStart

	// GoVtTopoZk2topoPort is used by the go/vt/topo/zk2topo package.
	// Takes three ports.
	GoVtTopoZk2topoPort = GoVtTopoEtcd2topoPort + 2

	// GoVtTopoConsultopoPort is used by the go/vt/topo/consultopo package.
	// Takes four ports.
	GoVtTopoConsultopoPort = GoVtTopoZk2topoPort + 3
)

Port definitions. Unit tests may run at the same time, so they should not use the same ports.

View Source
var (
	// GoVtTopoZk2topoZkID is used by the go/vt/topo/zk2topo package.
	GoVtTopoZk2topoZkID = 1
)

Zookeeper server ID definitions. Unit tests may run at the same time, so they can't use the same Zookeeper server IDs.

Functions

func Glob

func Glob(pattern string) []string

Glob returns all files matching a pattern in $VTROOT/data/test.

func Locate

func Locate(filename string) string

Locate returns a file path that came from $VTROOT/data/test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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