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