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

Method Test_RemoveAppImage_expectNotFound

api/application_test.go:477–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

475}
476
477func (s *ApplicationSuite) Test_RemoveAppImage_expectNotFound() {
478 s.db.User(5)
479
480 test.WithUser(s.ctx, 5)
481 s.ctx.Request = httptest.NewRequest("DELETE", "/irrelevant", nil)
482 s.ctx.Params = gin.Params{{Key: "id", Value: "4"}}
483
484 s.a.RemoveApplicationImage(s.ctx)
485
486 assert.Equal(s.T(), 404, s.recorder.Code)
487}
488
489func (s *ApplicationSuite) Test_RemoveAppImage_noCustomizedImage() {
490 s.db.User(5).App(1)

Callers

nothing calls this directly

Calls 3

WithUserFunction · 0.92
UserMethod · 0.80

Tested by

no test coverage detected