Home / Function/ Test_CookieBinder_Bind_ParseError() — fiber Function Reference

Test_CookieBinder_Bind_ParseError() — fiber Function Reference

Architecture documentation for the Test_CookieBinder_Bind_ParseError() function in cookie_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  98275029_49c5_53e6_79ed_fcde81354e2e["Test_CookieBinder_Bind_ParseError()"]
  738bd173_a1e5_8674_8a50_d2c19621cb9a["cookie_test.go"]
  98275029_49c5_53e6_79ed_fcde81354e2e -->|defined in| 738bd173_a1e5_8674_8a50_d2c19621cb9a
  style 98275029_49c5_53e6_79ed_fcde81354e2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binder/cookie_test.go lines 89–100

func Test_CookieBinder_Bind_ParseError(t *testing.T) {
	b := &CookieBinding{}
	type User struct {
		Age int `cookie:"age"`
	}
	var user User
	req := fasthttp.AcquireRequest()
	req.Header.SetCookie("age", "invalid")
	t.Cleanup(func() { fasthttp.ReleaseRequest(req) })
	err := b.Bind(req, &user)
	require.Error(t, err)
}

Domain

Subdomains

Frequently Asked Questions

What does Test_CookieBinder_Bind_ParseError() do?
Test_CookieBinder_Bind_ParseError() is a function in the fiber codebase, defined in binder/cookie_test.go.
Where is Test_CookieBinder_Bind_ParseError() defined?
Test_CookieBinder_Bind_ParseError() is defined in binder/cookie_test.go at line 89.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free