MCPcopy
hub / github.com/kopia/kopia / verifyAuthenticator

Function verifyAuthenticator

internal/auth/authn_test.go:38–44  ·  view source on GitHub ↗
(t *testing.T, a auth.Authenticator, username, password string, want bool)

Source from the content-addressed store, hash-verified

36}
37
38func 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}

Callers 2

TestAuthenticationFunction · 0.85

Calls 3

HelperMethod · 0.80
ErrorfMethod · 0.80
IsValidMethod · 0.65

Tested by

no test coverage detected