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

Method TestStorager

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

Source from the content-addressed store, hash-verified

71}
72
73func (s *V1WrapperSuite) TestStorager() {
74 storager := new(v1Storager)
75 s.i.storager = storager
76
77 s.i.SetStorageHandler(new(v1StorageHandler))
78
79 assert.Nil(s.T(), storager.handler.Save([]byte("test")))
80 storage, err := storager.handler.Load()
81 assert.Nil(s.T(), err)
82 assert.Equal(s.T(), "test", string(storage))
83}
84
85type v1MessengerHandler struct {
86 msgSent Message

Callers

nothing calls this directly

Calls 3

SetStorageHandlerMethod · 0.65
SaveMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected