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

Function Test_Ctx_Release_UserContextSetWithoutFastHTTP

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

Source from the content-addressed store, hash-verified

401}
402
403func Test_Ctx_Release_UserContextSetWithoutFastHTTP(t *testing.T) {
404 t.Parallel()
405
406 ctx := NewDefaultCtx(New())
407 ctx.isUserContextSet = true
408
409 require.NotPanics(t, ctx.release)
410 require.False(t, ctx.isUserContextSet)
411}
412
413func Test_Ctx_CustomCtx_WithMiddleware(t *testing.T) {
414 t.Parallel()

Callers

nothing calls this directly

Calls 2

NewDefaultCtxFunction · 0.85
NewFunction · 0.70

Tested by

no test coverage detected