testFormBindingEmbeddedStruct() — gin Function Reference
Architecture documentation for the testFormBindingEmbeddedStruct() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD eab13eaf_89db_b651_3e24_6bd31da020e5["testFormBindingEmbeddedStruct()"] 45890ac2_485f_ab3d_61c9_2e4d3991cb26["TestBindingFormEmbeddedStruct()"] 45890ac2_485f_ab3d_61c9_2e4d3991cb26 -->|calls| eab13eaf_89db_b651_3e24_6bd31da020e5 cd276440_c58d_b248_5f8f_558dd43ed071["TestBindingFormEmbeddedStruct2()"] cd276440_c58d_b248_5f8f_558dd43ed071 -->|calls| eab13eaf_89db_b651_3e24_6bd31da020e5 2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"] eab13eaf_89db_b651_3e24_6bd31da020e5 -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604 style eab13eaf_89db_b651_3e24_6bd31da020e5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 858–872
func testFormBindingEmbeddedStruct(t *testing.T, method, path, badPath, body, badBody string) {
b := Form
assert.Equal(t, "form", b.Name())
obj := QueryTest{}
req := requestWithBody(method, path, body)
if method == http.MethodPost {
req.Header.Add("Content-Type", MIMEPOSTForm)
}
err := b.Bind(req, &obj)
require.NoError(t, err)
assert.Equal(t, 1, obj.Page)
assert.Equal(t, 2, obj.Size)
assert.Equal(t, "test-appkey", obj.Appkey)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testFormBindingEmbeddedStruct() do?
testFormBindingEmbeddedStruct() is a function in the gin codebase.
What does testFormBindingEmbeddedStruct() call?
testFormBindingEmbeddedStruct() calls 1 function(s): requestWithBody.
What calls testFormBindingEmbeddedStruct()?
testFormBindingEmbeddedStruct() is called by 2 function(s): TestBindingFormEmbeddedStruct, TestBindingFormEmbeddedStruct2.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free