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

Function Test_Proxy_WithClient_Nil_Panics

middleware/proxy/proxy_test.go:836–842  ·  view source on GitHub ↗

go test -run Test_Proxy_WithClient_Nil_Panics

(t *testing.T)

Source from the content-addressed store, hash-verified

834
835// go test -run Test_Proxy_WithClient_Nil_Panics
836func Test_Proxy_WithClient_Nil_Panics(t *testing.T) {
837 t.Parallel()
838
839 require.PanicsWithValue(t, "proxy: WithClient requires a non-nil *fasthttp.Client", func() {
840 WithClient(nil)
841 })
842}
843
844// go test -run Test_Proxy_Do_NilClientOverride
845func Test_Proxy_Do_NilClientOverride(t *testing.T) {

Callers

nothing calls this directly

Calls 1

WithClientFunction · 0.85

Tested by

no test coverage detected