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

Function Test_App_SetHandlerCtxIfNeeded_CustomCtxFallback

ctx_test.go:391–401  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

389}
390
391func Test_App_SetHandlerCtxIfNeeded_CustomCtxFallback(t *testing.T) {
392 t.Parallel()
393
394 app := New()
395 ctx := &customCtx{
396 DefaultCtx: *NewDefaultCtx(app),
397 }
398
399 app.setHandlerCtxIfNeeded(ctx)
400 require.Same(t, ctx, ctx.handlerCtx)
401}
402
403func Test_Ctx_Release_UserContextSetWithoutFastHTTP(t *testing.T) {
404 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewDefaultCtxFunction · 0.85
setHandlerCtxIfNeededMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected