(t *testing.T)
| 1749 | } |
| 1750 | |
| 1751 | func TestInvalidHTTPConfigs(t *testing.T) { |
| 1752 | for _, ee := range invalidHTTPClientConfigs { |
| 1753 | _, _, err := LoadHTTPConfigFile(ee.httpClientConfigFile) |
| 1754 | if err == nil { |
| 1755 | t.Errorf("Expected error with config %q but got none", ee.httpClientConfigFile) |
| 1756 | continue |
| 1757 | } |
| 1758 | if !strings.Contains(err.Error(), ee.errMsg) { |
| 1759 | t.Errorf("Expected error for invalid HTTP client configuration to contain %q but got: %s", ee.errMsg, err) |
| 1760 | } |
| 1761 | } |
| 1762 | } |
| 1763 | |
| 1764 | type roundTrip struct { |
| 1765 | theResponse *http.Response |
nothing calls this directly
no test coverage detected
searching dependent graphs…