testutils

package
v0.0.0-...-cd37cee Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestDB

func GetTestDB(ctx context.Context, t *testing.T) *icingadb.DB

GetTestDB retrieves the database config from env variables, opens a new database and returns it.

The test suite will be skipped if no environment variable is set, otherwise fails fatally when invalid configurations are specified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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