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

Function TestFakeAuth

test/auth_test.go:13–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestFakeAuth(t *testing.T) {
14 mode.Set(mode.TestDev)
15
16 ctx, _ := gin.CreateTestContext(nil)
17 test.WithUser(ctx, 5)
18 assert.Equal(t, uint(5), auth.GetUserID(ctx))
19}

Callers

nothing calls this directly

Calls 3

SetFunction · 0.92
WithUserFunction · 0.92
GetUserIDFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…