TestMappingCustomArrayForm() — gin Function Reference
Architecture documentation for the TestMappingCustomArrayForm() function in form_mapping_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 0af86d90_a06e_b30e_ff8e_c1a7a7691245["TestMappingCustomArrayForm()"] 36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"] 0af86d90_a06e_b30e_ff8e_c1a7a7691245 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82 5c85b160_cd17_8c57_0c64_51be3c9bcbc4["convertTo()"] 0af86d90_a06e_b30e_ff8e_c1a7a7691245 -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4 style 0af86d90_a06e_b30e_ff8e_c1a7a7691245 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping_test.go lines 704–714
func TestMappingCustomArrayForm(t *testing.T) {
var s struct {
FileData objectID `form:"id"`
}
val := `664a062ac74a8ad104e0e80f`
err := mappingByPtr(&s, formSource{"id": {val}}, "form")
require.NoError(t, err)
expected, _ := convertTo(val)
assert.Equal(t, expected, s.FileData)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestMappingCustomArrayForm() do?
TestMappingCustomArrayForm() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomArrayForm() defined?
TestMappingCustomArrayForm() is defined in binding/form_mapping_test.go at line 704.
What does TestMappingCustomArrayForm() call?
TestMappingCustomArrayForm() calls 1 function(s): convertTo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free