Home / Function/ TestMappingCustomPointerStructTypeUnmarshalTextUri() — gin Function Reference

TestMappingCustomPointerStructTypeUnmarshalTextUri() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 838–848

func TestMappingCustomPointerStructTypeUnmarshalTextUri(t *testing.T) {
	var s struct {
		FileData *customUnmarshalTextType `uri:"data,parser=encoding.TextUnmarshaler"`
	}
	err := mappingByPtr(&s, formSource{"data": {`file:/foo:happiness`}}, "uri")
	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 TestMappingCustomPointerStructTypeUnmarshalTextUri() do?
TestMappingCustomPointerStructTypeUnmarshalTextUri() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomPointerStructTypeUnmarshalTextUri() defined?
TestMappingCustomPointerStructTypeUnmarshalTextUri() is defined in binding/form_mapping_test.go at line 838.

Analyze Your Own Codebase

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

Try Supermodel Free