(t *testing.T)
| 177 | } |
| 178 | |
| 179 | func TestBuildHTTPClient_CertNotFound(t *testing.T) { |
| 180 | t.Parallel() |
| 181 | |
| 182 | client, err := buildHTTPClient(false, "", "/nonexistent/cert.crt", "/nonexistent/key.pem") |
| 183 | assert.Error(t, err) |
| 184 | assert.Nil(t, client) |
| 185 | assert.Contains(t, err.Error(), "failed to load client certificate") |
| 186 | } |
| 187 | |
| 188 | func TestBuildHTTPClient_InsecureWithCACert(t *testing.T) { |
| 189 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…