Documentation
¶
Index ¶
- func ClearLoginAttempts(t *testing.T, email string)
- func Exec(t *testing.T, query string, args ...any)
- func ExecRows(t *testing.T, query string, args ...any) int64
- func GetPasswordResetToken(t *testing.T, email string) string
- func GetVerificationToken(t *testing.T, email string) string
- func QueryRow(t *testing.T, query string, args ...any) pgx.Row
- func SetUserStatus(t *testing.T, email, status string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearLoginAttempts ¶
ClearLoginAttempts removes login attempt records to reset lockout state
func ExecRows ¶ added in v0.5.0
ExecRows is Exec, returning the number of rows it touched. A fixture that updates nothing still succeeds, so a test that has to change a specific row asserts on this rather than trusting the statement ran.
func GetPasswordResetToken ¶
GetPasswordResetToken retrieves the password reset token for a user
func GetVerificationToken ¶
GetVerificationToken retrieves the email verification token for a user
func SetUserStatus ¶ added in v0.5.0
SetUserStatus moves an account's status, and asserts it moved a row: a WHERE that matches nothing succeeds, and a test whose subject was never deactivated goes green having proved the opposite of what it says.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.