MCPcopy
hub / github.com/gofiber/fiber / restoreGlobalProxyClient

Function restoreGlobalProxyClient

middleware/proxy/proxy_test.go:92–99  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func restoreGlobalProxyClient(t *testing.T) {
93 t.Helper()
94
95 prev := client.Load()
96 t.Cleanup(func() {
97 WithClient(prev)
98 })
99}
100
101// go test -run Test_Proxy_DefaultClient_MaxConnsPerHost
102func Test_Proxy_DefaultClient_MaxConnsPerHost(t *testing.T) {

Calls 2

WithClientFunction · 0.85
LoadMethod · 0.65

Tested by

no test coverage detected