(t *testing.T, r io.Reader, expected string)
| 1341 | } |
| 1342 | |
| 1343 | func checkResponse(t *testing.T, r io.Reader, expected string) { |
| 1344 | got := getStringFromResponse(t, r) |
| 1345 | if !strings.Contains(got, expected) { |
| 1346 | t.Fatalf("got: %q; expected: %q", got, expected) |
| 1347 | } |
| 1348 | } |
| 1349 | |
| 1350 | func httpGet(t *testing.T, url string, statusCode int) *http.Response { |
| 1351 | resp, err := http.Get(url) |
no test coverage detected