Documentation ¶
Index ¶
- Variables
- func CreateTestDatabase(name string) *memory.DbProvider
- func GetAppSettings(appNum int) settings.AppSettings
- func RunDatabaseServer(as settings.AppSettings)
- func StartAdminApp(ctx context.Context, as settings.AppSettings, dbConn *sqlx.DB) (*gin.Engine, error)
- func StartApp(ctx context.Context, as settings.AppSettings, dbConn *sqlx.DB) (*gin.Engine, error)
- func WaitForDb(ctx context.Context, as settings.AppSettings) (*sqlx.DB, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbedMigrations embed.FS
Functions ¶
func CreateTestDatabase ¶
func CreateTestDatabase(name string) *memory.DbProvider
func GetAppSettings ¶
func GetAppSettings(appNum int) settings.AppSettings
GetAppSettings gets the settings for the http servers taking into account a unique port. Very hacky way to get a unique port: manually have to pass a new number for every test... TODO : Find a way to assign a unique port at compile time
func RunDatabaseServer ¶
func RunDatabaseServer(as settings.AppSettings)
func StartAdminApp ¶
func StartAdminApp( ctx context.Context, as settings.AppSettings, dbConn *sqlx.DB, ) (*gin.Engine, error)
StartAdminApp configures and starts the administration application which will be tested by returning a `*gin.Engine` but without attaching an http.Server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.