heavyweight

package
v1.8.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 19 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