Documentation ¶
Index ¶
- func CloseTestApp(t *testing.T)
- func DoRequest(method string, apiPath string, body io.Reader, accessToken string) (error, *http.Response)
- func FindMyRootDir() string
- func InitTestDatabase(t *testing.T) *bun.DB
- func InitTestFramework()
- func ReadBody(t *testing.T, resp *http.Response) string
- type ApplicationTestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseTestApp ¶
func FindMyRootDir ¶
func FindMyRootDir() string
func InitTestFramework ¶
func InitTestFramework()
Types ¶
type ApplicationTestContext ¶
type ApplicationTestContext struct { Db *bun.DB App *fiber.App TestAdminUser *model.User TestAdminAccessToken string }
func InitTestApp ¶
func InitTestApp(t *testing.T) *ApplicationTestContext
Click to show internal directories.
Click to hide internal directories.