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

Method Test_DeleteUserByID_InvalidID

api/user_test.go:121–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func (s *UserSuite) Test_DeleteUserByID_InvalidID() {
122 s.ctx.Params = gin.Params{{Key: "id", Value: "abc"}}
123
124 s.a.DeleteUserByID(s.ctx)
125
126 assert.Equal(s.T(), 400, s.recorder.Code)
127}
128
129func (s *UserSuite) Test_DeleteUserByID_UnknownUser() {
130 s.db.User(2)

Callers

nothing calls this directly

Calls 1

DeleteUserByIDMethod · 0.65

Tested by

no test coverage detected