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

Function TestBuildHTTPClient_CACertNotFound

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

Source from the content-addressed store, hash-verified

108}
109
110func 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
119func TestBuildHTTPClient_CACertInvalid(t *testing.T) {
120 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…