MCPcopy Index your code
hub / github.com/coder/coder / TestNewIsolatedHTTPClientNilURL

Function TestNewIsolatedHTTPClientNilURL

coderd/coderdtest/httpclient_test.go:41–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestNewIsolatedHTTPClientNilURL(t *testing.T) {
42 t.Parallel()
43
44 client := coderdtest.NewIsolatedHTTPClient(nil)
45 require.NotNil(t, client.Transport)
46 require.NotSame(t, http.DefaultTransport, client.Transport)
47
48 transport, ok := client.Transport.(*http.Transport)
49 require.True(t, ok)
50 require.Nil(t, transport.TLSClientConfig)
51}
52
53func TestCreateAnotherUserHTTPClient(t *testing.T) {
54 t.Parallel()

Callers

nothing calls this directly

Calls 1

NewIsolatedHTTPClientFunction · 0.92

Tested by

no test coverage detected