TestFormPostBindingFail() — gin Function Reference
Architecture documentation for the TestFormPostBindingFail() function in binding_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
binding/binding_test.go lines 935–943
func TestFormPostBindingFail(t *testing.T) {
b := FormPost
assert.Equal(t, "form-urlencoded", b.Name())
obj := FooBarStruct{}
req, _ := http.NewRequest(http.MethodPost, "/", nil)
err := b.Bind(req, &obj)
require.Error(t, err)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free