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

Method Test_DeleteApplication

api/application_test.go:309–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307}
308
309func (s *ApplicationSuite) Test_DeleteApplication() {
310 s.db.User(5).App(1)
311
312 test.WithUser(s.ctx, 5)
313 s.ctx.Request = httptest.NewRequest("DELETE", "/token/"+firstApplicationToken, nil)
314 s.ctx.Params = gin.Params{{Key: "id", Value: "1"}}
315
316 s.a.DeleteApplication(s.ctx)
317
318 assert.Equal(s.T(), 200, s.recorder.Code)
319 s.db.AssertAppNotExist(1)
320}
321
322func (s *ApplicationSuite) Test_UploadAppImage_NoImageProvided_expectBadRequest() {
323 s.db.User(5).App(1)

Callers

nothing calls this directly

Calls 5

WithUserFunction · 0.92
AppMethod · 0.80
UserMethod · 0.80
DeleteApplicationMethod · 0.80
AssertAppNotExistMethod · 0.80

Tested by

no test coverage detected