(formData string)
| 224 | } |
| 225 | |
| 226 | func (s *ClientSuite) withFormData(formData string) { |
| 227 | s.ctx.Request = httptest.NewRequest("POST", "/token", strings.NewReader(formData)) |
| 228 | s.ctx.Request.Header.Set("Content-Type", "application/x-www-form-urlencoded") |
| 229 | } |
| 230 | |
| 231 | func withURL(ctx *gin.Context, scheme, host string) { |
| 232 | ctx.Set("location", &url.URL{Scheme: scheme, Host: host}) |
no outgoing calls
no test coverage detected