MCPcopy Index your code
hub / github.com/prest/prest / TestAuthHandler_basicPasswordCheck_unknownAlgorithm

Function TestAuthHandler_basicPasswordCheck_unknownAlgorithm

controllers/auth_test.go:358–362  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

356}
357
358func TestAuthHandler_basicPasswordCheck_unknownAlgorithm(t *testing.T) {
359 h := NewAuthHandler(nil, AuthConfig{Encrypt: "PLAINTEXT"})
360 _, err := h.basicPasswordCheck("carol", "pw")
361 require.ErrorIs(t, err, ErrUnknownEncryptAlgorithm)
362}
363
364func TestAuthHandler_basicPasswordCheck(t *testing.T) {
365 ctrl := gomock.NewController(t)

Callers

nothing calls this directly

Calls 2

basicPasswordCheckMethod · 0.95
NewAuthHandlerFunction · 0.85

Tested by

no test coverage detected