Documentation ¶
Index ¶
- func CreateDB(db *gorm.DB, dbName string) error
- func CreateEchoTestContext(req *http.Request, rec *httptest.ResponseRecorder) echo.Context
- func GetMockConfig() config.Config
- func GetTestDBConnection() *gorm.DB
- func GetTestDBName() string
- func Migrate(db *gorm.DB) error
- func SetupDB() (*gorm.DB, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEchoTestContext ¶
func CreateEchoTestContext(req *http.Request, rec *httptest.ResponseRecorder) echo.Context
func GetMockConfig ¶
func GetTestDBConnection ¶
GetConnection Returns the connection to the test db
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.