MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / mustDefaultTransport

Function mustDefaultTransport

sdk/proxyutil/proxy_test.go:15–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func mustDefaultTransport(t *testing.T) *http.Transport {
16 t.Helper()
17
18 transport, ok := http.DefaultTransport.(*http.Transport)
19 if !ok || transport == nil {
20 t.Fatal("http.DefaultTransport is not an *http.Transport")
21 }
22 return transport
23}
24
25func TestParse(t *testing.T) {
26 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected