(t *testing.T, httpHandler http.HandlerFunc)
| 569 | } |
| 570 | |
| 571 | func testServer(t *testing.T, httpHandler http.HandlerFunc) *httptest.Server { |
| 572 | t.Helper() |
| 573 | assert.NotNil(t, httpHandler) |
| 574 | server := httptest.NewServer(httpHandler) |
| 575 | t.Cleanup(server.Close) |
| 576 | return server |
| 577 | } |
no outgoing calls
no test coverage detected