Home / Function/ Test_FormBinder_Bind_ParseError() — fiber Function Reference

Test_FormBinder_Bind_ParseError() — fiber Function Reference

Architecture documentation for the Test_FormBinder_Bind_ParseError() function in form_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  9a1c7d55_bf84_46d6_93d4_718a4d81cfe9["Test_FormBinder_Bind_ParseError()"]
  9e2874af_daa9_2d85_5c35_752d6b7678f6["form_test.go"]
  9a1c7d55_bf84_46d6_93d4_718a4d81cfe9 -->|defined in| 9e2874af_daa9_2d85_5c35_752d6b7678f6
  style 9a1c7d55_bf84_46d6_93d4_718a4d81cfe9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binder/form_test.go lines 57–69

func Test_FormBinder_Bind_ParseError(t *testing.T) {
	b := &FormBinding{}
	type User struct {
		Age int `form:"age"`
	}
	var user User
	req := fasthttp.AcquireRequest()
	req.SetBodyString("age=invalid")
	req.Header.SetContentType("application/x-www-form-urlencoded")
	t.Cleanup(func() { fasthttp.ReleaseRequest(req) })
	err := b.Bind(req, &user)
	require.Error(t, err)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_FormBinder_Bind_ParseError() do?
Test_FormBinder_Bind_ParseError() is a function in the fiber codebase, defined in binder/form_test.go.
Where is Test_FormBinder_Bind_ParseError() defined?
Test_FormBinder_Bind_ParseError() is defined in binder/form_test.go at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free