Home / Function/ TestMappingCustomArrayUri() — gin Function Reference

TestMappingCustomArrayUri() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d22238b8_2aba_3373_9494_1c0955330b93["TestMappingCustomArrayUri()"]
  32c96007_7c8e_739e_ee0b_c4532af3bddf["convertTo()"]
  d22238b8_2aba_3373_9494_1c0955330b93 -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf
  style d22238b8_2aba_3373_9494_1c0955330b93 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 692–702

func TestMappingCustomArrayUri(t *testing.T) {
	var s struct {
		FileData objectID `uri:"id"`
	}
	val := `664a062ac74a8ad104e0e80f`
	err := mappingByPtr(&s, formSource{"id": {val}}, "uri")
	require.NoError(t, err)

	expected, _ := convertTo(val)
	assert.Equal(t, expected, s.FileData)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does TestMappingCustomArrayUri() do?
TestMappingCustomArrayUri() is a function in the gin codebase.
What does TestMappingCustomArrayUri() call?
TestMappingCustomArrayUri() calls 1 function(s): convertTo.

Analyze Your Own Codebase

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

Try Supermodel Free