MustCreateAuth creates a auth in the database. Fatal on error.
(tb testing.TB, ctx context.Context, db *sqlite.DB, auth *wtf.Auth)
| 230 | |
| 231 | // MustCreateAuth creates a auth in the database. Fatal on error. |
| 232 | func MustCreateAuth(tb testing.TB, ctx context.Context, db *sqlite.DB, auth *wtf.Auth) (*wtf.Auth, context.Context) { |
| 233 | tb.Helper() |
| 234 | if err := sqlite.NewAuthService(db).CreateAuth(ctx, auth); err != nil { |
| 235 | tb.Fatal(err) |
| 236 | } |
| 237 | return auth, wtf.NewContextWithUser(ctx, auth.User) |
| 238 | } |
no test coverage detected