test

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvTestSQLite3 = "GOTAFACE_TEST_SQLITE3"
)

Variables

This section is empty.

Functions

func FindRow

func FindRow[Row any](t *testing.T, tx gf_sqlite3.Queryer, from string, where map[string]any) *Row

func GetEnvSQLite3

func GetEnvSQLite3() (database string)

func InitDDLs

func InitDDLs(t *testing.T, db *sqlx.DB, stmts []string)

func InitDMLs

func InitDMLs(t *testing.T, db *sqlx.DB, stmts []string)

func ListRows

func ListRows[Row any](t *testing.T, tx gf_sqlite3.Queryer, from string) []*Row

func Setup

func Setup(t *testing.T, database string) (db *sqlx.DB, teardown func())

func SkipIfNoEnv

func SkipIfNoEnv(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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