Test_parse_function_maps() — fiber Function Reference
Architecture documentation for the Test_parse_function_maps() function in binder_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 730fe5d9_ea50_b54c_8d80_a89d19c3805a["Test_parse_function_maps()"] 85091b00_b20b_efcc_56f1_31b94278fe54["binder_test.go"] 730fe5d9_ea50_b54c_8d80_a89d19c3805a -->|defined in| 85091b00_b20b_efcc_56f1_31b94278fe54 style 730fe5d9_ea50_b54c_8d80_a89d19c3805a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binder/binder_test.go lines 90–112
func Test_parse_function_maps(t *testing.T) {
t.Parallel()
m := map[string][]string{}
err := parse("query", &m, map[string][]string{"a": {"b"}})
require.NoError(t, err)
require.Equal(t, []string{"b"}, m["a"])
m2 := map[string]string{}
err = parse("query", &m2, map[string][]string{"a": {"b"}})
require.NoError(t, err)
require.Equal(t, "b", m2["a"])
var zeroStringMap map[string]string
err = parse("query", &zeroStringMap, map[string][]string{"foo": {"bar", "baz"}})
require.NoError(t, err)
require.Equal(t, "baz", zeroStringMap["foo"])
var zeroSliceMap map[string][]string
err = parse("query", &zeroSliceMap, map[string][]string{"foo": {"bar", "baz"}})
require.NoError(t, err)
require.Equal(t, []string{"bar", "baz"}, zeroSliceMap["foo"])
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_parse_function_maps() do?
Test_parse_function_maps() is a function in the fiber codebase, defined in binder/binder_test.go.
Where is Test_parse_function_maps() defined?
Test_parse_function_maps() is defined in binder/binder_test.go at line 90.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free