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

Method TestEnableDisable

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

Source from the content-addressed store, hash-verified

108}
109
110func (s *CompatSuite) TestEnableDisable() {
111 inst := s.p.NewPluginInstance(UserContext{
112 ID: 5,
113 Name: "test5",
114 })
115 assert.Nil(s.T(), inst.Enable())
116 assert.Nil(s.T(), inst.Disable())
117}
118
119func (s *CompatSuite) TestGetDisplay() {
120 inst := s.p.NewPluginInstance(UserContext{

Callers

nothing calls this directly

Calls 3

EnableMethod · 0.95
DisableMethod · 0.95
NewPluginInstanceMethod · 0.65

Tested by

no test coverage detected