TestMappingCollectionFormatInvalid() — gin Function Reference
Architecture documentation for the TestMappingCollectionFormatInvalid() function in form_mapping_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 9a7f96f4_27fe_4f65_f056_828804ff35b9["TestMappingCollectionFormatInvalid()"] 36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"] 9a7f96f4_27fe_4f65_f056_828804ff35b9 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82 style 9a7f96f4_27fe_4f65_f056_828804ff35b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping_test.go lines 366–382
func TestMappingCollectionFormatInvalid(t *testing.T) {
var s struct {
SliceCsv []int `form:"slice_csv" collection_format:"xxx"`
}
err := mappingByPtr(&s, formSource{
"slice_csv": {"1,2"},
}, "form")
require.Error(t, err)
var s2 struct {
ArrayCsv [2]int `form:"array_csv" collection_format:"xxx"`
}
err = mappingByPtr(&s2, formSource{
"array_csv": {"1,2"},
}, "form")
require.Error(t, err)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestMappingCollectionFormatInvalid() do?
TestMappingCollectionFormatInvalid() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCollectionFormatInvalid() defined?
TestMappingCollectionFormatInvalid() is defined in binding/form_mapping_test.go at line 366.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free