(t *testing.T)
| 141 | } |
| 142 | |
| 143 | func TestBuildHTTPClient_KeyWithoutCert(t *testing.T) { |
| 144 | t.Parallel() |
| 145 | |
| 146 | client, err := buildHTTPClient(false, "", "", "/path/to/key.pem") |
| 147 | assert.Error(t, err) |
| 148 | assert.Nil(t, client) |
| 149 | assert.Contains(t, err.Error(), "both --cert and --cert-key must be provided together") |
| 150 | } |
| 151 | |
| 152 | func TestBuildHTTPClient_CertAndKey(t *testing.T) { |
| 153 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…