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

Method TestRegisterWebhook

plugin/compat/wrap_test.go:97–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (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
110func (s *CompatSuite) TestEnableDisable() {
111 inst := s.p.NewPluginInstance(UserContext{

Callers

nothing calls this directly

Calls 2

RegisterWebhookMethod · 0.95
NewPluginInstanceMethod · 0.65

Tested by

no test coverage detected