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

Method Test_GetUsers

api/user_test.go:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (s *UserSuite) Test_GetUsers() {
59 first := s.db.NewUser(2)
60 second := s.db.NewUser(5)
61
62 s.a.GetUsers(s.ctx)
63
64 assert.Equal(s.T(), 200, s.recorder.Code)
65 test.BodyEquals(s.T(), []*model.UserExternal{externalOf(first), externalOf(second)}, s.recorder)
66}
67
68func (s *UserSuite) Test_GetCurrentUser() {
69 user := s.db.NewUser(5)

Callers

nothing calls this directly

Calls 4

BodyEqualsFunction · 0.92
externalOfFunction · 0.85
NewUserMethod · 0.80
GetUsersMethod · 0.65

Tested by

no test coverage detected