Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
13
func
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
Set
Function · 0.92
WithUser
Function · 0.92
GetUserID
Function · 0.92
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…