(t *testing.T, a auth.Authenticator, username, password string, want bool)
| 36 | } |
| 37 | |
| 38 | func verifyAuthenticator(t *testing.T, a auth.Authenticator, username, password string, want bool) { |
| 39 | t.Helper() |
| 40 | |
| 41 | if got := a.IsValid(context.Background(), nil, username, password); got != want { |
| 42 | t.Errorf("invalid authenticator result for %v/%v: %v, want %v", username, password, got, want) |
| 43 | } |
| 44 | } |
no test coverage detected