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

Function Test_Session_FromSession

middleware/session/middleware_test.go:447–455  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

445}
446
447func Test_Session_FromSession(t *testing.T) {
448 t.Parallel()
449 app := fiber.New()
450
451 sess := FromContext(app.AcquireCtx(&fasthttp.RequestCtx{}))
452 require.Nil(t, sess)
453
454 app.Use(New())
455}
456
457func Test_Session_FromContext_Types(t *testing.T) {
458 t.Parallel()

Callers

nothing calls this directly

Calls 5

AcquireCtxMethod · 0.80
FromContextFunction · 0.70
NewFunction · 0.70
NewMethod · 0.65
UseMethod · 0.65

Tested by

no test coverage detected