(t *testing.T, httpHandler http.HandlerFunc)
| 766 | } |
| 767 | |
| 768 | func testServer(t *testing.T, httpHandler http.HandlerFunc) *httptest.Server { |
| 769 | t.Helper() |
| 770 | assert.NotNil(t, httpHandler) |
| 771 | server := httptest.NewServer(httpHandler) |
| 772 | t.Cleanup(server.Close) |
| 773 | return server |
| 774 | } |
| 775 | |
| 776 | const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 777 | const ( |
no outgoing calls
no test coverage detected