Home / Function/ TestMappingCustomUnmarshalParamHexDefault() — gin Function Reference

TestMappingCustomUnmarshalParamHexDefault() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 528–536

func TestMappingCustomUnmarshalParamHexDefault(t *testing.T) {
	var s struct {
		Foo customUnmarshalParamHex `form:"foo,default=f5"`
	}
	err := mappingByPtr(&s, formSource{"foo": {}}, "form")
	require.NoError(t, err)

	assert.EqualValues(t, 0xf5, s.Foo)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free