Home / Function/ TestMappingCustomArrayOfArrayForm() — gin Function Reference

TestMappingCustomArrayOfArrayForm() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b562a386_5536_697b_d0c5_0f589425edab["TestMappingCustomArrayOfArrayForm()"]
  36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"]
  b562a386_5536_697b_d0c5_0f589425edab -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82
  5c85b160_cd17_8c57_0c64_51be3c9bcbc4["convertTo()"]
  b562a386_5536_697b_d0c5_0f589425edab -->|calls| 5c85b160_cd17_8c57_0c64_51be3c9bcbc4
  style b562a386_5536_697b_d0c5_0f589425edab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 728–738

func TestMappingCustomArrayOfArrayForm(t *testing.T) {
	id1, _ := convertTo(`664a062ac74a8ad104e0e80e`)
	id2, _ := convertTo(`664a062ac74a8ad104e0e80f`)

	var s struct {
		FileData []objectID `form:"ids" collection_format:"csv"`
	}
	err := mappingByPtr(&s, formSource{"ids": {`664a062ac74a8ad104e0e80e,664a062ac74a8ad104e0e80f`}}, "form")
	require.NoError(t, err)
	assert.Equal(t, []objectID{id1, id2}, s.FileData)
}

Subdomains

Calls

Frequently Asked Questions

What does TestMappingCustomArrayOfArrayForm() do?
TestMappingCustomArrayOfArrayForm() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomArrayOfArrayForm() defined?
TestMappingCustomArrayOfArrayForm() is defined in binding/form_mapping_test.go at line 728.
What does TestMappingCustomArrayOfArrayForm() call?
TestMappingCustomArrayOfArrayForm() 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