testutils

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

assert fails the test if the condition is false.

func BaseDir

func BaseDir() string

func Equals

func Equals(tb testing.TB, exp, act interface{})

equals fails the test if exp is not equal to act.

func GetMinorVersion

func GetMinorVersion(tb testing.TB, db *sql.DB) *version.Version

func GetMySQLConnection

func GetMySQLConnection(tb testing.TB) *sql.DB

func GetVersion

func GetVersion(tb testing.TB, db *sql.DB) *version.Version

func IsNil

func IsNil(tb testing.TB, i interface{}, args ...interface{})

func LoadFile

func LoadFile(tb testing.TB, filename string) []string

func LoadJson

func LoadJson(tb testing.TB, filename string, dest interface{})

func LoadQueriesFromFile

func LoadQueriesFromFile(tb testing.TB, filename string)

func NotNil

func NotNil(tb testing.TB, i interface{})

func NotOk

func NotOk(tb testing.TB, err error)

func Ok

func Ok(tb testing.TB, err error, args ...interface{})

ok fails the test if an err is not nil.

func UpdateSampleFile

func UpdateSampleFile(tb testing.TB, filename string, lines []string)

func UpdateSampleJSON

func UpdateSampleJSON(tb testing.TB, filename string, data interface{})

func UpdateSamples

func UpdateSamples() bool

func WriteFile

func WriteFile(tb testing.TB, filename string, lines []string)

func WriteJson

func WriteJson(tb testing.TB, filename string, data interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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