()
| 72 | ) |
| 73 | |
| 74 | func init() { |
| 75 | ctx := test.Context() |
| 76 | |
| 77 | hashValidator := pbkdf2.Default() |
| 78 | hashValidator.Iterations = 10 |
| 79 | ctx = auth.NewContextWithHashValidator(ctx, hashValidator) |
| 80 | |
| 81 | password, err := auth.Hash(ctx, "pass") |
| 82 | if err != nil { |
| 83 | panic(err) |
| 84 | } |
| 85 | mockUser.Password = password |
| 86 | } |
| 87 | |
| 88 | func TestAuthentication(t *testing.T) { |
| 89 | store := &mockStore{} |
nothing calls this directly
no test coverage detected