TestBindingFormForType() — gin Function Reference
Architecture documentation for the TestBindingFormForType() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD f7c11e14_199e_d77b_35aa_23209200a8d0["TestBindingFormForType()"] 314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"] f7c11e14_199e_d77b_35aa_23209200a8d0 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a 13a7de32_6308_7e83_72dc_bcd2d4a99041["testFormBindingForType()"] f7c11e14_199e_d77b_35aa_23209200a8d0 -->|calls| 13a7de32_6308_7e83_72dc_bcd2d4a99041 style f7c11e14_199e_d77b_35aa_23209200a8d0 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
Defined In
Calls
Source
Frequently Asked Questions
What does TestBindingFormForType() do?
TestBindingFormForType() is a function in the gin codebase, defined in binding/binding_test.go.
Where is TestBindingFormForType() defined?
TestBindingFormForType() is defined in binding/binding_test.go at line 325.
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