MCPcopy Index your code
hub / github.com/gotify/server / TestTriggerMessage

Method TestTriggerMessage

plugin/manager_test.go:320–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318}
319
320func (s *ManagerSuite) TestTriggerMessage() {
321 inst := s.getMockPluginInstance(1)
322 inst.TriggerMessage()
323 select {
324 case msg := <-s.msgReceiver:
325 assert.Equal(s.T(), uint(1), msg.UserID)
326 assert.NotEmpty(s.T(), msg.Message.Extras)
327 case <-time.After(1 * time.Second):
328 assert.Fail(s.T(), "read message time out")
329 }
330}
331
332func (s *ManagerSuite) TestStorage() {
333 inst := s.getMockPluginInstance(1)

Callers

nothing calls this directly

Calls 2

getMockPluginInstanceMethod · 0.95
TriggerMessageMethod · 0.80

Tested by

no test coverage detected