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

Function TestBuildHTTPClient_Default

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

Source from the content-addressed store, hash-verified

60}
61
62func TestBuildHTTPClient_Default(t *testing.T) {
63 t.Parallel()
64
65 // When no TLS customization is needed, should return http.DefaultClient
66 client, err := buildHTTPClient(false, "", "", "")
67 require.NoError(t, err)
68 assert.Equal(t, http.DefaultClient, client)
69}
70
71func TestBuildHTTPClient_Insecure(t *testing.T) {
72 t.Parallel()

Callers

nothing calls this directly

Calls 1

buildHTTPClientFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…