(t *testing.T)
| 1400 | } |
| 1401 | |
| 1402 | func TestInvalidHTTPConfigs(t *testing.T) { |
| 1403 | for _, ee := range invalidHTTPClientConfigs { |
| 1404 | _, _, err := LoadHTTPConfigFile(ee.httpClientConfigFile) |
| 1405 | if err == nil { |
| 1406 | t.Error("Expected error with config but got none") |
| 1407 | continue |
| 1408 | } |
| 1409 | if !strings.Contains(err.Error(), ee.errMsg) { |
| 1410 | t.Errorf("Expected error for invalid HTTP client configuration to contain %q but got: %s", ee.errMsg, err) |
| 1411 | } |
| 1412 | } |
| 1413 | } |
| 1414 | |
| 1415 | type roundTrip struct { |
| 1416 | theResponse *http.Response |
nothing calls this directly
no test coverage detected