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

Method Test_UploadAppImage_expectNotFound

api/application_test.go:465–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463}
464
465func (s *ApplicationSuite) Test_UploadAppImage_expectNotFound() {
466 s.db.User(5)
467
468 test.WithUser(s.ctx, 5)
469 s.ctx.Request = httptest.NewRequest("POST", "/irrelevant", nil)
470 s.ctx.Params = gin.Params{{Key: "id", Value: "4"}}
471
472 s.a.UploadApplicationImage(s.ctx)
473
474 assert.Equal(s.T(), 404, s.recorder.Code)
475}
476
477func (s *ApplicationSuite) Test_RemoveAppImage_expectNotFound() {
478 s.db.User(5)

Callers

nothing calls this directly

Calls 3

WithUserFunction · 0.92
UserMethod · 0.80

Tested by

no test coverage detected