lstesting

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeSchema

func FakeSchema(t T, cascade string) (libschema.Options, func(db *sql.DB))

FakeSchema generates an Options config with a fake random schema name that begins with "lstest_". It also returns a function to remove that schema -- the function should work with Postgres and Mysql.

func RandomString

func RandomString(n int) string

RandomString returns a lowercase string of length n

Types

type T

type T interface {
	assert.TestingT
	Logf(string, ...interface{})
}

Jump to

Keyboard shortcuts

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