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

Method Test_DeleteMessage_notExistingID

api/message_test.go:240–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238}
239
240func (s *MessageSuite) Test_DeleteMessage_notExistingID() {
241 s.db.User(1).App(5).Message(55)
242
243 s.ctx.Params = gin.Params{{Key: "id", Value: "1"}}
244 s.a.DeleteMessage(s.ctx)
245
246 assert.Equal(s.T(), 404, s.recorder.Code)
247}
248
249func (s *MessageSuite) Test_DeleteMessage_existingIDButNotOwner() {
250 s.db.User(1).App(10).Message(100)

Callers

nothing calls this directly

Calls 4

MessageMethod · 0.80
AppMethod · 0.80
UserMethod · 0.80
DeleteMessageMethod · 0.80

Tested by

no test coverage detected