test

package
v0.0.0-...-9a826e6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupGormWithDocker

func SetupGormWithDocker() (*gorm.DB, func())

SetupGormWithDocker creates a temporary Postgres docker container to run tests against. Returns connected gorm DB and function to clean up container after testing is complete.

Types

type DbSuite

type DbSuite struct {
	suite.Suite
	Db          *gorm.DB
	CleanupFunc func()
}

Jump to

Keyboard shortcuts

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