(t *testing.T, req *http.Response, expected int)
| 1379 | } |
| 1380 | |
| 1381 | func assertStatusCode(t *testing.T, req *http.Response, expected int) { |
| 1382 | t.Helper() |
| 1383 | |
| 1384 | if received := req.StatusCode; received != expected { |
| 1385 | t.Errorf("invalid status code: %d <> %d", expected, received) |
| 1386 | } |
| 1387 | } |
| 1388 | |
| 1389 | func assertRequestHeader(t *testing.T, req *http.Request, key string, expected string) { |
| 1390 | t.Helper() |
no outgoing calls
no test coverage detected