Home / Function/ TestMappingCustomUnmarshalTextHexDefault() — gin Function Reference

TestMappingCustomUnmarshalTextHexDefault() — gin Function Reference

Architecture documentation for the TestMappingCustomUnmarshalTextHexDefault() function in form_mapping_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  c3aa75c5_0472_eeb9_cf6d_861b8c21a4c9["TestMappingCustomUnmarshalTextHexDefault()"]
  36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"]
  c3aa75c5_0472_eeb9_cf6d_861b8c21a4c9 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82
  style c3aa75c5_0472_eeb9_cf6d_861b8c21a4c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 774–781

func TestMappingCustomUnmarshalTextHexDefault(t *testing.T) {
	var s struct {
		Field customUnmarshalTextHex `form:"field,default=f5,parser=encoding.TextUnmarshaler"`
	}
	err := mappingByPtr(&s, formSource{"field1": {}}, "form")
	require.NoError(t, err)
	assert.EqualValues(t, 0xf5, s.Field)
}

Subdomains

Frequently Asked Questions

What does TestMappingCustomUnmarshalTextHexDefault() do?
TestMappingCustomUnmarshalTextHexDefault() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomUnmarshalTextHexDefault() defined?
TestMappingCustomUnmarshalTextHexDefault() is defined in binding/form_mapping_test.go at line 774.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free