Home / Function/ TestMappingCustomPointerStructTypeUnmarshalTextForm() — gin Function Reference

TestMappingCustomPointerStructTypeUnmarshalTextForm() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 826–836

func TestMappingCustomPointerStructTypeUnmarshalTextForm(t *testing.T) {
	var s struct {
		FileData *customUnmarshalTextType `form:"data,parser=encoding.TextUnmarshaler"`
	}
	err := mappingByPtr(&s, formSource{"data": {`file:/foo:happiness`}}, "form")
	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)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free