testingutil

package
v0.3.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWALMode added in v0.3.0

func IsWALMode() bool

IsWALMode returns the true if -journal-mode is set to "wal".

func JournalMode added in v0.3.0

func JournalMode() string

JournalMode returns the value of -journal-mode.

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