Test_New_UnmarshalError() — fiber Function Reference
Architecture documentation for the Test_New_UnmarshalError() function in idempotency_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 8e7b5fb7_a9d0_6a62_3d42_08de263d1380["Test_New_UnmarshalError()"] 94a179ed_b8df_d669_56a8_8e55d7bbb6bf["idempotency_test.go"] 8e7b5fb7_a9d0_6a62_3d42_08de263d1380 -->|defined in| 94a179ed_b8df_d669_56a8_8e55d7bbb6bf c0f669d8_cf91_791e_215a_b1f0725d315b["do()"] 8e7b5fb7_a9d0_6a62_3d42_08de263d1380 -->|calls| c0f669d8_cf91_791e_215a_b1f0725d315b style 8e7b5fb7_a9d0_6a62_3d42_08de263d1380 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/idempotency/idempotency_test.go lines 292–305
func Test_New_UnmarshalError(t *testing.T) {
t.Parallel()
app := fiber.New()
s := &stubStorage{data: map[string][]byte{validKey: []byte("bad")}}
app.Use(New(Config{Storage: s, Lock: &stubLock{}}))
app.Post("/", func(c fiber.Ctx) error { return c.SendString("ok") })
req := httptest.NewRequest(http.MethodPost, "/", http.NoBody)
req.Header.Set(ConfigDefault.KeyHeader, validKey)
resp, body := do(app, req)
require.Equal(t, fiber.StatusInternalServerError, resp.StatusCode)
require.Contains(t, body, "failed to write cached response at fastpath")
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does Test_New_UnmarshalError() do?
Test_New_UnmarshalError() is a function in the fiber codebase, defined in middleware/idempotency/idempotency_test.go.
Where is Test_New_UnmarshalError() defined?
Test_New_UnmarshalError() is defined in middleware/idempotency/idempotency_test.go at line 292.
What does Test_New_UnmarshalError() call?
Test_New_UnmarshalError() calls 1 function(s): do.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free