testBodyBindingSlice() — gin Function Reference
Architecture documentation for the testBodyBindingSlice() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD e5351554_9500_6df3_c57b_2cd373df1ec3["testBodyBindingSlice()"] 234bf6bb_2979_ca7d_c691_b40977e66e44["TestBindingJSONSlice()"] 234bf6bb_2979_ca7d_c691_b40977e66e44 -->|calls| e5351554_9500_6df3_c57b_2cd373df1ec3 2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"] e5351554_9500_6df3_c57b_2cd373df1ec3 -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604 style e5351554_9500_6df3_c57b_2cd373df1ec3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 1232–1244
func testBodyBindingSlice(t *testing.T, b Binding, name, path, badPath, body, badBody string) {
assert.Equal(t, name, b.Name())
var obj1 []FooStruct
req := requestWithBody(http.MethodPost, path, body)
err := b.Bind(req, &obj1)
require.NoError(t, err)
var obj2 []FooStruct
req = requestWithBody(http.MethodPost, badPath, badBody)
err = JSON.Bind(req, &obj2)
require.Error(t, err)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does testBodyBindingSlice() do?
testBodyBindingSlice() is a function in the gin codebase.
What does testBodyBindingSlice() call?
testBodyBindingSlice() calls 1 function(s): requestWithBody.
What calls testBodyBindingSlice()?
testBodyBindingSlice() is called by 1 function(s): TestBindingJSONSlice.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free