(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestGetTLSConfig(t *testing.T) { |
| 87 | _, err := getTLSConfig("nonexistent") |
| 88 | if err == nil { |
| 89 | t.Error("Expected failure, found success.") |
| 90 | } |
| 91 | _, err = getTLSConfig("./testdata/certbundle.pem") |
| 92 | if err != nil { |
| 93 | t.Errorf("Could not get TLS config: %s", err) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | var credentialsTests = []struct { |
| 98 | spec string |
nothing calls this directly
no test coverage detected