MCPcopy
hub / github.com/gotify/server / TestPasswordSuccess

Function TestPasswordSuccess

auth/password/password_test.go:9–12  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestPasswordSuccess(t *testing.T) {
10 password := CreatePassword("secret", 5)
11 assert.Equal(t, true, ComparePassword(password, []byte("secret")))
12}
13
14func TestPasswordFailure(t *testing.T) {
15 password := CreatePassword("secret", 5)

Callers

nothing calls this directly

Calls 2

CreatePasswordFunction · 0.85
ComparePasswordFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…