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

Method Test_UpdateClient_expectNotFound

api/client_test.go:211–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211func (s *ClientSuite) Test_UpdateClient_expectNotFound() {
212 test.WithUser(s.ctx, 5)
213 s.ctx.Params = gin.Params{{Key: "id", Value: "2"}}
214 s.a.UpdateClient(s.ctx)
215
216 assert.Equal(s.T(), 404, s.recorder.Code)
217}
218
219func (s *ClientSuite) Test_UpdateClient_WithMissingAttributes_expectBadRequest() {
220 test.WithUser(s.ctx, 5)

Callers

nothing calls this directly

Calls 2

WithUserFunction · 0.92
UpdateClientMethod · 0.65

Tested by

no test coverage detected