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

Method TestGetCapabilities

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

Source from the content-addressed store, hash-verified

71}
72
73func (s *CompatSuite) TestGetCapabilities() {
74 inst := s.p.NewPluginInstance(UserContext{
75 ID: 2,
76 Name: "test2",
77 })
78
79 c := inst.Supports()
80
81 assert.Contains(s.T(), c, Webhooker)
82 assert.Contains(s.T(), c.Strings(), string(Webhooker))
83 assert.True(s.T(), HasSupport(inst, Webhooker))
84 assert.False(s.T(), HasSupport(inst, "not_exist"))
85}
86
87func (s *CompatSuite) TestSetConfig() {
88 inst := s.p.NewPluginInstance(UserContext{

Callers

nothing calls this directly

Calls 4

SupportsMethod · 0.95
HasSupportFunction · 0.85
StringsMethod · 0.80
NewPluginInstanceMethod · 0.65

Tested by

no test coverage detected