Documentation
¶
Index ¶
- Variables
- func CreateFormImagePart(writer *multipart.Writer, fieldname string, filename string, ...) (io.Writer, error)
- func CreateImage() image.Image
- func CreateTestDatabase(name string) *memory.DbProvider
- func CreateTextFormHeader(writer *multipart.Writer, fieldname string) (io.Writer, error)
- func GetAppSettings(app_num int) common.AppSettings
- func RunDatabaseServer(app_settings common.AppSettings)
- func WaitForDb(app_settings common.AppSettings) (database.SqlDatabase, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EmbedMigrations embed.FS
Functions ¶
func CreateFormImagePart ¶
func CreateImage ¶
Creating an image in memory for testing: https://yourbasic.org/golang/create-image/
func CreateTestDatabase ¶
func CreateTestDatabase(name string) *memory.DbProvider
func CreateTextFormHeader ¶
func GetAppSettings ¶
func GetAppSettings(app_num int) common.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(app_settings common.AppSettings)
func WaitForDb ¶
func WaitForDb(app_settings common.AppSettings) (database.SqlDatabase, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.