(url string, handler func(http.ResponseWriter, *http.Request), t *testing.T)
| 121 | } |
| 122 | |
| 123 | func testGet(url string, handler func(http.ResponseWriter, *http.Request), t *testing.T) (string, *http.Response) { |
| 124 | t.Helper() |
| 125 | req := httptest.NewRequest(http.MethodGet, url, nil) |
| 126 | |
| 127 | return testRequest(req, handler, t) |
| 128 | } |
| 129 | |
| 130 | func testPost(url string, body string, handler func(http.ResponseWriter, *http.Request), t *testing.T) (string, *http.Response) { |
| 131 | t.Helper() |
no test coverage detected