()
| 350 | } |
| 351 | |
| 352 | func (s *PluginSuite) Test_GetDisplay_danglingConf_expectNotFound() { |
| 353 | conf := s.getDanglingConf(1) |
| 354 | |
| 355 | { |
| 356 | test.WithUser(s.ctx, 1) |
| 357 | |
| 358 | s.ctx.Request = httptest.NewRequest("GET", fmt.Sprintf("/plugin/%d/display", conf.ID), nil) |
| 359 | s.ctx.Params = gin.Params{{Key: "id", Value: fmt.Sprint(conf.ID)}} |
| 360 | s.a.GetDisplay(s.ctx) |
| 361 | |
| 362 | assert.Equal(s.T(), 404, s.recorder.Code) |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | func (s *PluginSuite) Test_GetDisplay_nonExistPlugin_expectNotFound() { |
| 367 | { |
nothing calls this directly
no test coverage detected