MCPcopy Create free account
hub / github.com/gogs/gogs / TestTwoFactorCacheKey

Function TestTwoFactorCacheKey

internal/userutil/userutil_test.go:186–189  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestTwoFactorCacheKey(t *testing.T) {
187 got := TwoFactorCacheKey(1, "113654")
188 assert.Equal(t, "twoFactor::1::113654", got)
189}
190
191func TestRandomSalt(t *testing.T) {
192 salt1, err := RandomSalt()

Callers

nothing calls this directly

Calls 1

TwoFactorCacheKeyFunction · 0.85

Tested by

no test coverage detected