testingutil

package
v0.1.0-alpha2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustCopyDir

func MustCopyDir(tb testing.TB, src, dst string)

MustCopyDir recursively copies files from src directory to dst directory.

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