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

Function TestSharedState_ExplicitSerializationError

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

Source from the content-addressed store, hash-verified

212}
213
214func TestSharedState_ExplicitSerializationError(t *testing.T) {
215 t.Parallel()
216
217 app := New(Config{SharedStorage: newSharedStateMemoryStorage(t)})
218 err := app.SharedState().SetJSON("invalid", make(chan int), time.Second)
219 require.Error(t, err)
220}
221
222func TestSharedState_ContextAwareVariants(t *testing.T) {
223 t.Parallel()

Callers

nothing calls this directly

Calls 5

SharedStateMethod · 0.80
NewFunction · 0.70
ErrorMethod · 0.65
SetJSONMethod · 0.45

Tested by

no test coverage detected