()
| 364 | } |
| 365 | |
| 366 | func (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 | |
| 378 | func (s *PluginSuite) Test_GetConfig() { |
| 379 | conf, err := s.db.GetPluginConfByUserAndPath(1, mock.ModulePath) |
nothing calls this directly
no test coverage detected