Test_parseToMap_defaultCase() — fiber Function Reference
Architecture documentation for the Test_parseToMap_defaultCase() function in binder_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 50b03e2e_51f6_4d64_7cb3_b955c4fdcf0f["Test_parseToMap_defaultCase()"] 85091b00_b20b_efcc_56f1_31b94278fe54["binder_test.go"] 50b03e2e_51f6_4d64_7cb3_b955c4fdcf0f -->|defined in| 85091b00_b20b_efcc_56f1_31b94278fe54 style 50b03e2e_51f6_4d64_7cb3_b955c4fdcf0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binder/binder_test.go lines 72–88
func Test_parseToMap_defaultCase(t *testing.T) {
t.Parallel()
m := map[string]int{}
err := parseToMap(reflect.ValueOf(m), map[string][]string{"a": {"1"}})
require.NoError(t, err)
require.Empty(t, m)
m2 := map[string]string{}
err = parseToMap(reflect.ValueOf(m2), map[string][]string{"empty": {}})
require.NoError(t, err)
require.Empty(t, m2["empty"])
var zeroStringMap map[string]string
err = parseToMap(reflect.ValueOf(&zeroStringMap).Elem(), map[string][]string{"name": {"john"}})
require.NoError(t, err)
require.Equal(t, "john", zeroStringMap["name"])
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_parseToMap_defaultCase() do?
Test_parseToMap_defaultCase() is a function in the fiber codebase, defined in binder/binder_test.go.
Where is Test_parseToMap_defaultCase() defined?
Test_parseToMap_defaultCase() is defined in binder/binder_test.go at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free