(t *testing.T)
| 508 | } |
| 509 | |
| 510 | func createDefaultFormPostRequest(t *testing.T) *http.Request { |
| 511 | req, err := http.NewRequest(http.MethodPost, "/?foo=getfoo&bar=getbar", bytes.NewBufferString("foo=bar")) |
| 512 | require.NoError(t, err) |
| 513 | req.Header.Set("Content-Type", MIMEPOSTForm) |
| 514 | return req |
| 515 | } |
| 516 | |
| 517 | func createFormPostRequestForMap(t *testing.T) *http.Request { |
| 518 | req, err := http.NewRequest(http.MethodPost, "/?map_foo=getfoo", bytes.NewBufferString("map_foo={\"bar\":123}")) |
no test coverage detected