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

Function TestBuildHTTPClient_KeyWithoutCert

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

Source from the content-addressed store, hash-verified

141}
142
143func 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
152func TestBuildHTTPClient_CertAndKey(t *testing.T) {
153 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…