testQueryBinding() — gin Function Reference
Architecture documentation for the testQueryBinding() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 8d570659_a818_1dac_0d8c_53d03070ea77["testQueryBinding()"] 314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"] 8d570659_a818_1dac_0d8c_53d03070ea77 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a 47cb15db_09d3_1af2_a309_20ac587c3b35["TestBindingQuery()"] 47cb15db_09d3_1af2_a309_20ac587c3b35 -->|calls| 8d570659_a818_1dac_0d8c_53d03070ea77 8dcb9844_184f_9eff_2d63_589f73dbda4d["TestBindingQuery2()"] 8dcb9844_184f_9eff_2d63_589f73dbda4d -->|calls| 8d570659_a818_1dac_0d8c_53d03070ea77 aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"] 8d570659_a818_1dac_0d8c_53d03070ea77 -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e style 8d570659_a818_1dac_0d8c_53d03070ea77 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does testQueryBinding() do?
testQueryBinding() is a function in the gin codebase, defined in binding/binding_test.go.
Where is testQueryBinding() defined?
testQueryBinding() is defined in binding/binding_test.go at line 1176.
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