get is a helper that makes a GET request and returns the status code.
(t *testing.T, client *http.Client, url string)
| 36 | |
| 37 | // get is a helper that makes a GET request and returns the status code. |
| 38 | func get(t *testing.T, client *http.Client, url string) int { |
| 39 | t.Helper() |
| 40 | resp, err := client.Get(url) |
| 41 | if err != nil { |
| 42 | t.Fatalf("GET %s: %v", url, err) |
| 43 | } |
| 44 | resp.Body.Close() |
| 45 | return resp.StatusCode |
| 46 | } |
| 47 | |
| 48 | // --- BuildTLSTransport --- |
| 49 |
no test coverage detected