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

Function Test_Ctx_RequestCtx

ctx_test.go:1499–1505  ·  view source on GitHub ↗

go test -run Test_Ctx_RequestCtx

(t *testing.T)

Source from the content-addressed store, hash-verified

1497
1498// go test -run Test_Ctx_RequestCtx
1499func Test_Ctx_RequestCtx(t *testing.T) {
1500 t.Parallel()
1501 app := New()
1502 c := app.AcquireCtx(&fasthttp.RequestCtx{})
1503
1504 require.Equal(t, "*fasthttp.RequestCtx", fmt.Sprintf("%T", c.RequestCtx()))
1505}
1506
1507// go test -run Test_Ctx_Cookie
1508func Test_Ctx_Cookie(t *testing.T) {

Callers

nothing calls this directly

Calls 3

AcquireCtxMethod · 0.80
NewFunction · 0.70
RequestCtxMethod · 0.65

Tested by

no test coverage detected