testingutil

package
v0.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenSQLDB

func OpenSQLDB(tb testing.TB, dsn string) *sql.DB

OpenSQLDB opens a connection to a SQLite database.

func ReopenSQLDB

func ReopenSQLDB(tb testing.TB, db **sql.DB, dsn string)

ReopenSQLDB closes the existing database connection and reopens it with the DSN.

func RetryUntil

func RetryUntil(tb testing.TB, interval, timeout time.Duration, fn func() error)

RetryUntil calls fn every interval until it returns nil or timeout elapses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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