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

Method TestOptionsRequest

router/router_test.go:318–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316}
317
318func (s *IntegrationSuite) TestOptionsRequest() {
319 req := s.newRequest("OPTIONS", "version", "")
320
321 res, err := client.Do(req)
322 assert.Nil(s.T(), err)
323 assert.Equal(s.T(), res.StatusCode, 200)
324}
325
326func (s *IntegrationSuite) TestSendMessage() {
327 req := s.newRequest("POST", "application", `{"name": "backup-server"}`)

Callers

nothing calls this directly

Calls 2

newRequestMethod · 0.95
DoMethod · 0.80

Tested by

no test coverage detected