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

Function TestApp_releaseDefaultCtx_NotAbandonedPools

ctx_reclaim_test.go:159–165  ·  view source on GitHub ↗

TestApp_releaseDefaultCtx_NotAbandonedPools verifies the non-abandoned branch in releaseDefaultCtx still pools the ctx through the normal path.

(t *testing.T)

Source from the content-addressed store, hash-verified

157// TestApp_releaseDefaultCtx_NotAbandonedPools verifies the non-abandoned branch
158// in releaseDefaultCtx still pools the ctx through the normal path.
159func TestApp_releaseDefaultCtx_NotAbandonedPools(t *testing.T) {
160 t.Parallel()
161 app, c := acquireReclaimTestCtx(t)
162
163 require.False(t, c.IsAbandoned())
164 require.NotPanics(t, func() { app.releaseDefaultCtx(c) })
165}

Callers

nothing calls this directly

Calls 3

acquireReclaimTestCtxFunction · 0.85
releaseDefaultCtxMethod · 0.80
IsAbandonedMethod · 0.65

Tested by

no test coverage detected