TestBindingFormForType() — gin Function Reference
Architecture documentation for the TestBindingFormForType() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 149b830f_94cf_4c05_dcdc_ee69b283def3["TestBindingFormForType()"] ff4e3445_1a09_c6b2_adce_360613feb8f0["testFormBindingForType()"] 149b830f_94cf_4c05_dcdc_ee69b283def3 -->|calls| ff4e3445_1a09_c6b2_adce_360613feb8f0 style 149b830f_94cf_4c05_dcdc_ee69b283def3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 325–369
func TestBindingFormForType(t *testing.T) {
testFormBindingForType(t, http.MethodPost,
"/", "/",
"map_foo={\"bar\":123}", "map_foo=1", "Map")
testFormBindingForType(t, http.MethodPost,
"/", "/",
"slice_foo=1&slice_foo=2", "bar2=1&bar2=2", "Slice")
testFormBindingForType(t, http.MethodGet,
"/?slice_foo=1&slice_foo=2", "/?bar2=1&bar2=2",
"", "", "Slice")
testFormBindingForType(t, http.MethodPost,
"/", "/",
"slice_map_foo=1&slice_map_foo=2", "bar2=1&bar2=2", "SliceMap")
testFormBindingForType(t, http.MethodGet,
"/?slice_map_foo=1&slice_map_foo=2", "/?bar2=1&bar2=2",
"", "", "SliceMap")
testFormBindingForType(t, http.MethodPost,
"/", "/",
"ptr_bar=test", "bar2=test", "Ptr")
testFormBindingForType(t, http.MethodGet,
"/?ptr_bar=test", "/?bar2=test",
"", "", "Ptr")
testFormBindingForType(t, http.MethodPost,
"/", "/",
"idx=123", "id1=1", "Struct")
testFormBindingForType(t, http.MethodGet,
"/?idx=123", "/?id1=1",
"", "", "Struct")
testFormBindingForType(t, http.MethodPost,
"/", "/",
"name=thinkerou", "name1=ou", "StructPointer")
testFormBindingForType(t, http.MethodGet,
"/?name=thinkerou", "/?name1=ou",
"", "", "StructPointer")
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestBindingFormForType() do?
TestBindingFormForType() is a function in the gin codebase.
What does TestBindingFormForType() call?
TestBindingFormForType() calls 1 function(s): testFormBindingForType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free