(t *testing.T)
| 120 | } |
| 121 | |
| 122 | func TestInvalidTLSConfig(t *testing.T) { |
| 123 | for _, ee := range invalidTLSConfigs { |
| 124 | _, err := LoadTLSConfig("testdata/" + ee.filename) |
| 125 | if err == nil { |
| 126 | t.Error("Expected error with config but got none") |
| 127 | continue |
| 128 | } |
| 129 | if !strings.Contains(err.Error(), ee.errMsg) { |
| 130 | t.Errorf("Expected error for invalid HTTP client configuration to contain %q but got: %s", ee.errMsg, err) |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | func TestTLSVersionStringer(t *testing.T) { |
| 136 | s := (TLSVersion)(tls.VersionTLS13) |
nothing calls this directly
no test coverage detected