TestMappingCustomSliceUnmarshalTextForm() — gin Function Reference
Architecture documentation for the TestMappingCustomSliceUnmarshalTextForm() function in form_mapping_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 4f5b21fa_59a7_d9a7_8f21_af5eae0184ea["TestMappingCustomSliceUnmarshalTextForm()"] 36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"] 4f5b21fa_59a7_d9a7_8f21_af5eae0184ea -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82 style 4f5b21fa_59a7_d9a7_8f21_af5eae0184ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping_test.go lines 876–885
func TestMappingCustomSliceUnmarshalTextForm(t *testing.T) {
var s struct {
FileData customPathUnmarshalText `form:"path,parser=encoding.TextUnmarshaler"`
}
err := mappingByPtr(&s, formSource{"path": {`bar/foo`}}, "form")
require.NoError(t, err)
assert.Equal(t, "bar", s.FileData[0])
assert.Equal(t, "foo", s.FileData[1])
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestMappingCustomSliceUnmarshalTextForm() do?
TestMappingCustomSliceUnmarshalTextForm() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomSliceUnmarshalTextForm() defined?
TestMappingCustomSliceUnmarshalTextForm() is defined in binding/form_mapping_test.go at line 876.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free