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.
Click to show internal directories.
Click to hide internal directories.