(t *testing.T)
| 132 | } |
| 133 | |
| 134 | func TestBuildHTTPClient_CertWithoutKey(t *testing.T) { |
| 135 | t.Parallel() |
| 136 | |
| 137 | client, err := buildHTTPClient(false, "", "/path/to/cert.crt", "") |
| 138 | assert.Error(t, err) |
| 139 | assert.Nil(t, client) |
| 140 | assert.Contains(t, err.Error(), "both --cert and --cert-key must be provided together") |
| 141 | } |
| 142 | |
| 143 | func TestBuildHTTPClient_KeyWithoutCert(t *testing.T) { |
| 144 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…