tests

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDBPopulated

func AssertDBPopulated(t *testing.T, db *sql.DB)

func CleanTable

func CleanTable(db *sql.DB) error

func PrepareTestDatabase

func PrepareTestDatabase(log Log) (*sql.DB, string, func(), error)

func RowsCount

func RowsCount(db *sql.DB) (int, error)

func TestPersonExists

func TestPersonExists(db *sql.DB) (bool, error)

Types

type Log

type Log interface {
	Logf(format string, args ...interface{})
}

type Person

type Person struct {
	Id    int
	Name  string
	Email string
	City  string
}

Jump to

Keyboard shortcuts

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