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

Method Test_DeleteUserByID_UnknownUser

api/user_test.go:129–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129func (s *UserSuite) Test_DeleteUserByID_UnknownUser() {
130 s.db.User(2)
131
132 s.ctx.Params = gin.Params{{Key: "id", Value: "3"}}
133
134 s.a.DeleteUserByID(s.ctx)
135
136 assert.Equal(s.T(), 404, s.recorder.Code)
137}
138
139func (s *UserSuite) Test_DeleteUserByID() {
140 assert.False(s.T(), s.notifiedDelete)

Callers

nothing calls this directly

Calls 2

UserMethod · 0.80
DeleteUserByIDMethod · 0.65

Tested by

no test coverage detected