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
  8d673839_eedc_d790_dd97_4c5f6a7b535f["TestMappingCustomArrayOfArrayForm()"]
  32c96007_7c8e_739e_ee0b_c4532af3bddf["convertTo()"]
  8d673839_eedc_d790_dd97_4c5f6a7b535f -->|calls| 32c96007_7c8e_739e_ee0b_c4532af3bddf
  style 8d673839_eedc_d790_dd97_4c5f6a7b535f 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)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does TestMappingCustomArrayOfArrayForm() do?
TestMappingCustomArrayOfArrayForm() is a function in the gin codebase.
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