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

Function TestSharedState_NewAppDefaultPrefixIncludesAppName

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

Source from the content-addressed store, hash-verified

415}
416
417func TestSharedState_NewAppDefaultPrefixIncludesAppName(t *testing.T) {
418 t.Parallel()
419
420 app := New(Config{AppName: "my-app", SharedStorage: newSharedStateMemoryStorage(t)})
421 require.Equal(t, defaultSharedStatePrefix+"my-app-", app.SharedState().prefix)
422}
423
424func TestSharedState_GetJSON_UnmarshalError(t *testing.T) {
425 t.Parallel()

Callers

nothing calls this directly

Calls 3

SharedStateMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected