testQueryBinding() — gin Function Reference
Architecture documentation for the testQueryBinding() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 67ea4e7a_a2fb_32dc_8296_067c5e8ec46f["testQueryBinding()"] c90de0de_eb69_af82_0b21_41bdd9ebf14a["TestBindingQuery()"] c90de0de_eb69_af82_0b21_41bdd9ebf14a -->|calls| 67ea4e7a_a2fb_32dc_8296_067c5e8ec46f bee4dad3_211d_88b7_c849_57a3ee40af2e["TestBindingQuery2()"] bee4dad3_211d_88b7_c849_57a3ee40af2e -->|calls| 67ea4e7a_a2fb_32dc_8296_067c5e8ec46f 2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"] 67ea4e7a_a2fb_32dc_8296_067c5e8ec46f -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604 style 67ea4e7a_a2fb_32dc_8296_067c5e8ec46f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 1176–1189
func testQueryBinding(t *testing.T, method, path, badPath, body, badBody string) {
b := Query
assert.Equal(t, "query", b.Name())
obj := FooBarStruct{}
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, "bar", obj.Foo)
assert.Equal(t, "foo", obj.Bar)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does testQueryBinding() do?
testQueryBinding() is a function in the gin codebase.
What does testQueryBinding() call?
testQueryBinding() calls 1 function(s): requestWithBody.
What calls testQueryBinding()?
testQueryBinding() is called by 2 function(s): TestBindingQuery, TestBindingQuery2.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free