()
| 95 | } |
| 96 | |
| 97 | func (s *CompatSuite) TestRegisterWebhook() { |
| 98 | inst := s.p.NewPluginInstance(UserContext{ |
| 99 | ID: 4, |
| 100 | Name: "test4", |
| 101 | }) |
| 102 | |
| 103 | e := gin.New() |
| 104 | g := e.Group("/") |
| 105 | assert.NotPanics(s.T(), func() { |
| 106 | inst.RegisterWebhook("/plugin/4/custom/Pabcd/", g) |
| 107 | }) |
| 108 | } |
| 109 | |
| 110 | func (s *CompatSuite) TestEnableDisable() { |
| 111 | inst := s.p.NewPluginInstance(UserContext{ |
nothing calls this directly
no test coverage detected