testdb

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package testdb provides functions to setup or tear down integration tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB(dbFile string) (store.DatabaseConnector, error)

GetDB provides a database connection for integration tests.

func InitDB

func InitDB(dbFile string) (store.DatabaseConnector, error)

InitDB provides a database connection for integration tests and initialises the database.

func ShutdownDB

func ShutdownDB(db io.Closer, t *testing.T)

ShutdownDB closes database connection for integration tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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