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