Home / Function/ TestMappingURI() — gin Function Reference

TestMappingURI() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 140–147

func TestMappingURI(t *testing.T) {
	var s struct {
		F int `uri:"field"`
	}
	err := mapURI(&s, map[string][]string{"field": {"6"}})
	require.NoError(t, err)
	assert.Equal(t, 6, s.F)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free