MCPcopy Index your code
hub / github.com/go-task/task / TestBuildHTTPClient_CertNotFound

Function TestBuildHTTPClient_CertNotFound

taskfile/node_http_test.go:179–186  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

177}
178
179func 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
188func TestBuildHTTPClient_InsecureWithCACert(t *testing.T) {
189 t.Parallel()

Callers

nothing calls this directly

Calls 2

buildHTTPClientFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…