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

Function TestSharedState_DefaultPrefixFallback

shared_state_test.go:410–415  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

408}
409
410func TestSharedState_DefaultPrefixFallback(t *testing.T) {
411 t.Parallel()
412
413 state := newSharedState(&Config{SharedStorage: newSharedStateMemoryStorage(t)})
414 require.Equal(t, defaultSharedStatePrefix, state.prefix)
415}
416
417func TestSharedState_NewAppDefaultPrefixIncludesAppName(t *testing.T) {
418 t.Parallel()

Callers

nothing calls this directly

Calls 2

newSharedStateFunction · 0.85

Tested by

no test coverage detected