Home / Function/ TestMappingCustomSliceUri() — gin Function Reference

TestMappingCustomSliceUri() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 616–625

func TestMappingCustomSliceUri(t *testing.T) {
	var s struct {
		FileData customPath `uri:"path"`
	}
	err := mappingByPtr(&s, formSource{"path": {`bar/foo`}}, "uri")
	require.NoError(t, err)

	assert.Equal(t, "bar", s.FileData[0])
	assert.Equal(t, "foo", s.FileData[1])
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free