(formData string)
| 663 | } |
| 664 | |
| 665 | func (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 | |
| 670 | func (s *ApplicationSuite) withJSON(value interface{}) { |
| 671 | jsonVal, _ := json.Marshal(value) |
no outgoing calls
no test coverage detected