(t *testing.T)
| 108 | } |
| 109 | |
| 110 | func TestBuildHTTPClient_CACertNotFound(t *testing.T) { |
| 111 | t.Parallel() |
| 112 | |
| 113 | client, err := buildHTTPClient(false, "/nonexistent/ca.crt", "", "") |
| 114 | assert.Error(t, err) |
| 115 | assert.Nil(t, client) |
| 116 | assert.Contains(t, err.Error(), "failed to read CA certificate") |
| 117 | } |
| 118 | |
| 119 | func TestBuildHTTPClient_CACertInvalid(t *testing.T) { |
| 120 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…