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

Method TestStorage

plugin/manager_test.go:332–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330}
331
332func (s *ManagerSuite) TestStorage() {
333 inst := s.getMockPluginInstance(1)
334
335 assert.Nil(s.T(), inst.SetStorage([]byte("test")))
336 storage, err := inst.GetStorage()
337 assert.Nil(s.T(), err)
338 assert.Equal(s.T(), "test", string(storage))
339}
340
341func (s *ManagerSuite) TestGetPluginInfo() {
342 assert.Equal(s.T(), mock.Name, s.manager.PluginInfo(mock.ModulePath).Name)

Callers

nothing calls this directly

Calls 3

getMockPluginInstanceMethod · 0.95
SetStorageMethod · 0.80
GetStorageMethod · 0.80

Tested by

no test coverage detected