testutil

package
v0.0.0-...-a073ad2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Wordlist = strings.Fields(words)

Wordlist generate a slice of stings from words

Functions

func ClusterHA

func ClusterHA(t *testing.T) func()

ClusterHA builds a high availablity cluster to test HA test

func ClusterInABox

func ClusterInABox(t *testing.T) func()

ClusterInABox spins up a cluster-in-a-box cluster on this machine. Returns a finalizer to stop && delete the cluster.

func ClusterSinglebox

func ClusterSinglebox(t *testing.T) func()

ClusterSinglebox spins up a single leaf Returns a finalizer to stop && delete the node

func CreateDatabase

func CreateDatabase(t *testing.T, db string) func()

CreateDatabase will create a database with a name specified and return a DROP DATABASE function; which should be deferred

func CreateLoremTable

func CreateLoremTable(t *testing.T, tableType string, database string, tableNames []string)

CreateLoremTable create a testing table

func CreateTable

func CreateTable(t *testing.T, db, table, columns string)

CreateTable Create table for testing

func GenerateLoremStrings

func GenerateLoremStrings(out chan []string, done <-chan struct{})

GenerateLoremStrings Generates Random lorem ipsum strings

func InsertLoremData

func InsertLoremData(loremStrings <-chan []string, t *testing.T, database string, tables []string)

InsertLoremData watch the chanel and insterts into db

func InsertRow

func InsertRow(t *testing.T, db, table string, columns, values []string) error

InsertRow inserts into table

func MustRun

func MustRun(t *testing.T, name string, a ...interface{})

func TerminateCluster

func TerminateCluster(t *testing.T)

TerminateCluster does exactly what you would think

Types

This section is empty.

Jump to

Keyboard shortcuts

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