(handler http.HandlerFunc)
| 45 | } |
| 46 | |
| 47 | func newServer(handler http.HandlerFunc) *httptest.Server { |
| 48 | mux := http.NewServeMux() |
| 49 | mux.HandleFunc(path, handler) |
| 50 | return httptest.NewServer(mux) |
| 51 | } |
| 52 | |
| 53 | func TestBadRequests(t *testing.T) { |
| 54 | assert := require.New(t) |
no outgoing calls
no test coverage detected
searching dependent graphs…