TestMappingCustomStructTypeUnmarshalTextUri() — gin Function Reference
Architecture documentation for the TestMappingCustomStructTypeUnmarshalTextUri() function in form_mapping_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 7265c4c4_796a_1b96_00ae_9158debca8fe["TestMappingCustomStructTypeUnmarshalTextUri()"] 36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"] 7265c4c4_796a_1b96_00ae_9158debca8fe -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82 style 7265c4c4_796a_1b96_00ae_9158debca8fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping_test.go lines 814–824
func TestMappingCustomStructTypeUnmarshalTextUri(t *testing.T) {
var s struct {
FileData customUnmarshalTextType `uri:"data,parser=encoding.TextUnmarshaler"`
}
err := mappingByPtr(&s, formSource{"data": {`file:/foo:happiness`}}, "uri")
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
Defined In
Source
Frequently Asked Questions
What does TestMappingCustomStructTypeUnmarshalTextUri() do?
TestMappingCustomStructTypeUnmarshalTextUri() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomStructTypeUnmarshalTextUri() defined?
TestMappingCustomStructTypeUnmarshalTextUri() is defined in binding/form_mapping_test.go at line 814.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free