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

Method Test_GetDisplay_nonExistPlugin_expectNotFound

api/plugin_test.go:366–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364}
365
366func (s *PluginSuite) Test_GetDisplay_nonExistPlugin_expectNotFound() {
367 {
368 test.WithUser(s.ctx, 1)
369
370 s.ctx.Request = httptest.NewRequest("GET", "/plugin/99/display", nil)
371 s.ctx.Params = gin.Params{{Key: "id", Value: "99"}}
372 s.a.GetDisplay(s.ctx)
373
374 assert.Equal(s.T(), 404, s.recorder.Code)
375 }
376}
377
378func (s *PluginSuite) Test_GetConfig() {
379 conf, err := s.db.GetPluginConfByUserAndPath(1, mock.ModulePath)

Callers

nothing calls this directly

Calls 2

WithUserFunction · 0.92
GetDisplayMethod · 0.65

Tested by

no test coverage detected