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

Method Test_GetUserByID_InvalidID

api/user_test.go:89–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (s *UserSuite) Test_GetUserByID_InvalidID() {
90 s.db.User(2)
91 s.ctx.Params = gin.Params{{Key: "id", Value: "abc"}}
92
93 s.a.GetUserByID(s.ctx)
94
95 assert.Equal(s.T(), 400, s.recorder.Code)
96}
97
98func (s *UserSuite) Test_GetUserByID_UnknownUser() {
99 s.db.User(2)

Callers

nothing calls this directly

Calls 2

UserMethod · 0.80
GetUserByIDMethod · 0.65

Tested by

no test coverage detected