TestBindingJSONSlice() — gin Function Reference
Architecture documentation for the TestBindingJSONSlice() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 234bf6bb_2979_ca7d_c691_b40977e66e44["TestBindingJSONSlice()"] e5351554_9500_6df3_c57b_2cd373df1ec3["testBodyBindingSlice()"] 234bf6bb_2979_ca7d_c691_b40977e66e44 -->|calls| e5351554_9500_6df3_c57b_2cd373df1ec3 style 234bf6bb_2979_ca7d_c691_b40977e66e44 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 195–207
func TestBindingJSONSlice(t *testing.T) {
EnableDecoderDisallowUnknownFields = true
defer func() {
EnableDecoderDisallowUnknownFields = false
}()
testBodyBindingSlice(t, JSON, "json", "/", "/", `[]`, ``)
testBodyBindingSlice(t, JSON, "json", "/", "/", `[{"foo": "123"}]`, `[{}]`)
testBodyBindingSlice(t, JSON, "json", "/", "/", `[{"foo": "123"}]`, `[{"foo": ""}]`)
testBodyBindingSlice(t, JSON, "json", "/", "/", `[{"foo": "123"}]`, `[{"foo": 123}]`)
testBodyBindingSlice(t, JSON, "json", "/", "/", `[{"foo": "123"}]`, `[{"bar": 123}]`)
testBodyBindingSlice(t, JSON, "json", "/", "/", `[{"foo": "123"}]`, `[{"foo": "123456789012345678901234567890123"}]`)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does TestBindingJSONSlice() do?
TestBindingJSONSlice() is a function in the gin codebase.
What does TestBindingJSONSlice() call?
TestBindingJSONSlice() calls 1 function(s): testBodyBindingSlice.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free