Documentation
¶
Index ¶
- Constants
- Variables
- func AssertErrorResponseBody(t *testing.T, resp *http.Response, expected *utils.ErrorResponseBody)
- func AssertLog(t *testing.T, expected *models.Log, actual *models.Log)
- func CountClientSessions(t *testing.T, db *gorm.DB, sessionCount *int64)
- func CountEmailTokens(t *testing.T, db *gorm.DB, emailTokenCount *int64)
- func CountLogs(t *testing.T, db *gorm.DB, logCount *int64)
- func CountMFATokens(t *testing.T, db *gorm.DB, mfaTokenCount *int64)
- func CountUsers(t *testing.T, db *gorm.DB, userCount *int64)
- func NewSlug(t *testing.T) string
- func QueryTestClientSessionLatest(t *testing.T, db *gorm.DB, session *models.ClientSession)
- func QueryTestEmailTokenLatest(t *testing.T, db *gorm.DB, emailToken *models.EmailVerificationToken)
- func QueryTestLogLatest(t *testing.T, db *gorm.DB, log *models.Log)
- func QueryTestMFATokenLatest(t *testing.T, db *gorm.DB, mfaToken *models.MFAToken)
- func QueryTestUserByEmail(t *testing.T, db *gorm.DB, user *models.User, email string)
- func QueryTestUserBySlug(t *testing.T, db *gorm.DB, user *models.User, slug string)
Constants ¶
View Source
const ( CLIENT_IP string = "127.0.0.2" OLD_IP string = "127.0.0.3" VALID_NAME_1 string = "Jane Doe" VALID_EMAIL_1 string = "email-one@test.co" VALID_PHONE_1 string = "+12125551234" VALID_PW_1 string = "7h3Val!dPA5SWoRD" VALID_NAME_2 string = "John Doe" VALID_EMAIL_2 string = "email-two@test.co" VALID_PHONE_2 string = "+12125556789" VALID_PW_2 string = "7h3Val@dPA5SWoRD" )
Variables ¶
View Source
var HexHash1 = hex.EncodeToString(utils.HashToken(VALID_EMAIL_1 + VALID_PW_1))
View Source
var HexHash2 = hex.EncodeToString(utils.HashToken(VALID_EMAIL_2 + VALID_PW_2))
Functions ¶
func AssertErrorResponseBody ¶
func QueryTestMFATokenLatest ¶
func QueryTestUserByEmail ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.