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

Function TestBuildHTTPClient_CertWithoutKey

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

Source from the content-addressed store, hash-verified

132}
133
134func TestBuildHTTPClient_CertWithoutKey(t *testing.T) {
135 t.Parallel()
136
137 client, err := buildHTTPClient(false, "", "/path/to/cert.crt", "")
138 assert.Error(t, err)
139 assert.Nil(t, client)
140 assert.Contains(t, err.Error(), "both --cert and --cert-key must be provided together")
141}
142
143func TestBuildHTTPClient_KeyWithoutCert(t *testing.T) {
144 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…