heavyweight

package
v1.5.1-debug-polygon-t... Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullTestDB added in v1.1.0

func FullTestDB(t *testing.T, name string) (*configtest.TestGeneralConfig, *sqlx.DB)

FullTestDB creates a pristine DB which runs in a separate database than the normal unit tests, so you can do things like use other Postgres connection types with it.

func FullTestDBEmpty added in v1.4.0

func FullTestDBEmpty(t *testing.T, name string) (*configtest.TestGeneralConfig, *sqlx.DB)

FullTestDBEmpty creates an empty DB (without migrations).

func FullTestDBNoFixtures added in v1.4.0

func FullTestDBNoFixtures(t *testing.T, name string) (*configtest.TestGeneralConfig, *sqlx.DB)

FullTestDBNoFixtures is the same as FullTestDB, but it does not load fixtures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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