TestMappingCustomPointerStructTypeUnmarshalTextForm() — gin Function Reference
Architecture documentation for the TestMappingCustomPointerStructTypeUnmarshalTextForm() function in form_mapping_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
binding/form_mapping_test.go lines 826–836
func TestMappingCustomPointerStructTypeUnmarshalTextForm(t *testing.T) {
var s struct {
FileData *customUnmarshalTextType `form:"data,parser=encoding.TextUnmarshaler"`
}
err := mappingByPtr(&s, formSource{"data": {`file:/foo:happiness`}}, "form")
require.NoError(t, err)
assert.Equal(t, "file", s.FileData.Protocol)
assert.Equal(t, "/foo", s.FileData.Path)
assert.Equal(t, "happiness", s.FileData.Name)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free