TestJSONBindingBindBodyMap() — gin Function Reference
Architecture documentation for the TestJSONBindingBindBodyMap() function in json_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD ccb13b5a_4390_1758_9268_fabb7b06d3b2["TestJSONBindingBindBodyMap()"] 5fc3e4c8_9ce1_a1b5_76da_8025131b9864["json_test.go"] ccb13b5a_4390_1758_9268_fabb7b06d3b2 -->|defined in| 5fc3e4c8_9ce1_a1b5_76da_8025131b9864 style ccb13b5a_4390_1758_9268_fabb7b06d3b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/json_test.go lines 31–38
func TestJSONBindingBindBodyMap(t *testing.T) {
s := make(map[string]string)
err := jsonBinding{}.BindBody([]byte(`{"foo": "FOO","hello":"world"}`), &s)
require.NoError(t, err)
assert.Len(t, s, 2)
assert.Equal(t, "FOO", s["foo"])
assert.Equal(t, "world", s["hello"])
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestJSONBindingBindBodyMap() do?
TestJSONBindingBindBodyMap() is a function in the gin codebase, defined in binding/json_test.go.
Where is TestJSONBindingBindBodyMap() defined?
TestJSONBindingBindBodyMap() is defined in binding/json_test.go at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free