MCPcopy Index your code
hub / github.com/gotify/server / Test_getID

Method Test_getID

auth/util_test.go:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (s *UtilSuite) Test_getID() {
27 s.expectUserIDWith(&model.User{ID: 2}, 0, 2)
28 s.expectUserIDWith(nil, 5, 5)
29 assert.Panics(s.T(), func() {
30 s.expectUserIDWith(nil, 0, 0)
31 })
32 s.expectTryUserIDWith(nil, 0, nil)
33}
34
35func (s *UtilSuite) Test_getToken() {
36 ctx, _ := gin.CreateTestContext(httptest.NewRecorder())

Callers

nothing calls this directly

Calls 2

expectUserIDWithMethod · 0.95
expectTryUserIDWithMethod · 0.95

Tested by

no test coverage detected