testmysql

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf      *models.Config
	ServerCtx *models.ServerCtx
	Schema    *schema.Schema
)
View Source
var TestConfigData = `` /* 133-byte string literal not displayed */

Functions

func NewTestServer

func NewTestServer(t TestingT)

func NewTestServerForDb

func NewTestServerForDb(t TestingT, db string)

func RunTestServer

func RunTestServer(t TestingT)

func SchemaLoader

func SchemaLoader(name string) (*schema.Schema, error)

SchemaLoader is a function for teting only to have Schema available as global

func Setup

func Setup()

Setup enables -vv verbose logging or sends logs to /dev/null env var VERBOSELOGS=true was added to support verbose logging with alltests

func StartServer

func StartServer()

Types

type TestingT

type TestingT interface {
	Errorf(format string, args ...interface{})
}

TestingT is an interface wrapper around *testing.T so when we import this go dep, govendor don't import "testing"

Jump to

Keyboard shortcuts

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