test

package
v0.0.0-...-289f4dd Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServePublicKey

func ServePublicKey() jwk.Key

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