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

Method withFormData

api/application_test.go:665–668  ·  view source on GitHub ↗
(formData string)

Source from the content-addressed store, hash-verified

663}
664
665func (s *ApplicationSuite) withFormData(formData string) {
666 s.ctx.Request = httptest.NewRequest("POST", "/token", strings.NewReader(formData))
667 s.ctx.Request.Header.Set("Content-Type", "application/x-www-form-urlencoded")
668}
669
670func (s *ApplicationSuite) withJSON(value interface{}) {
671 jsonVal, _ := json.Marshal(value)

Calls

no outgoing calls

Tested by

no test coverage detected