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

Method Test_GetCurrentUser

api/user_test.go:68–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func (s *UserSuite) Test_GetCurrentUser() {
69 user := s.db.NewUser(5)
70
71 test.WithUser(s.ctx, 5)
72 s.a.GetCurrentUser(s.ctx)
73
74 assert.Equal(s.T(), 200, s.recorder.Code)
75 test.BodyEquals(s.T(), externalOf(user), s.recorder)
76}
77
78func (s *UserSuite) Test_GetUserByID() {
79 user := s.db.NewUser(2)

Callers

nothing calls this directly

Calls 5

WithUserFunction · 0.92
BodyEqualsFunction · 0.92
externalOfFunction · 0.85
NewUserMethod · 0.80
GetCurrentUserMethod · 0.80

Tested by

no test coverage detected