MCPcopy
hub / github.com/gotify/server / TestSetConfig

Method TestSetConfig

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

Source from the content-addressed store, hash-verified

85}
86
87func (s *CompatSuite) TestSetConfig() {
88 inst := s.p.NewPluginInstance(UserContext{
89 ID: 3,
90 Name: "test3",
91 })
92
93 defaultConfig := inst.DefaultConfig()
94 assert.Nil(s.T(), inst.ValidateAndSetConfig(defaultConfig))
95}
96
97func (s *CompatSuite) TestRegisterWebhook() {
98 inst := s.p.NewPluginInstance(UserContext{

Callers

nothing calls this directly

Calls 3

DefaultConfigMethod · 0.95
ValidateAndSetConfigMethod · 0.95
NewPluginInstanceMethod · 0.65

Tested by

no test coverage detected