Documentation ¶
Index ¶
- func AssertBool(t *testing.T, got, expected bool)
- func AssertResponseMessage(t *testing.T, got, expected string)
- func AssertStatusCode(t *testing.T, got, expected int)
- func AssertValidationError(t *testing.T, response map[string]interface{}, field string, ...)
- func CreateNotification(t *testing.T, r *gin.Engine, db *storage.Database, ...) string
- func CreateOrganisation(t *testing.T, r *gin.Engine, db *storage.Database, org organisation.Controller, ...) string
- func GetLoginToken(t *testing.T, r *gin.Engine, auth auth.Controller, ...) string
- func ParseResponse(w *httptest.ResponseRecorder) map[string]interface{}
- func Setup() *utility.Logger
- func SignupUser(t *testing.T, r *gin.Engine, auth auth.Controller, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBool ¶
func AssertResponseMessage ¶
func AssertStatusCode ¶
func AssertValidationError ¶
func CreateNotification ¶
func CreateNotification(t *testing.T, r *gin.Engine, db *storage.Database, not notificationCRUD.Controller, notData models.NotificationReq, token string) string
func CreateOrganisation ¶
func CreateOrganisation(t *testing.T, r *gin.Engine, db *storage.Database, org organisation.Controller, orgData models.CreateOrgRequestModel, token string) string
helper to create an organisation
func GetLoginToken ¶
func GetLoginToken(t *testing.T, r *gin.Engine, auth auth.Controller, loginData models.LoginRequestModel) string
func ParseResponse ¶
func ParseResponse(w *httptest.ResponseRecorder) map[string]interface{}
func SignupUser ¶
func SignupUser(t *testing.T, r *gin.Engine, auth auth.Controller, userSignUpData models.CreateUserRequestModel, admin bool)
helper to signup a user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.