TestMappingCustomSliceOfSliceUnmarshalTextDefault() — gin Function Reference
Architecture documentation for the TestMappingCustomSliceOfSliceUnmarshalTextDefault() function in form_mapping_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
binding/form_mapping_test.go lines 914–921
func TestMappingCustomSliceOfSliceUnmarshalTextDefault(t *testing.T) {
var s struct {
FileData []customPathUnmarshalText `form:"path,default=bar/foo;bar/foo/spam,parser=encoding.TextUnmarshaler" collection_format:"csv"`
}
err := mappingByPtr(&s, formSource{"path": {}}, "form")
require.NoError(t, err)
assert.Equal(t, []customPathUnmarshalText{{"bar", "foo"}, {"bar", "foo", "spam"}}, s.FileData)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free