Home / Function/ TestMappingCustomArrayOfArrayUnmarshalTextForm() — gin Function Reference

TestMappingCustomArrayOfArrayUnmarshalTextForm() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c5317c0d_9c72_94f7_c757_f695ab50adaf["TestMappingCustomArrayOfArrayUnmarshalTextForm()"]
  36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"]
  c5317c0d_9c72_94f7_c757_f695ab50adaf -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82
  1285f4f5_f0ab_d88b_9429_cec4c58637a5["convertToOidUnmarshalText()"]
  c5317c0d_9c72_94f7_c757_f695ab50adaf -->|calls| 1285f4f5_f0ab_d88b_9429_cec4c58637a5
  style c5317c0d_9c72_94f7_c757_f695ab50adaf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 978–988

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

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

Subdomains

Frequently Asked Questions

What does TestMappingCustomArrayOfArrayUnmarshalTextForm() do?
TestMappingCustomArrayOfArrayUnmarshalTextForm() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomArrayOfArrayUnmarshalTextForm() defined?
TestMappingCustomArrayOfArrayUnmarshalTextForm() is defined in binding/form_mapping_test.go at line 978.
What does TestMappingCustomArrayOfArrayUnmarshalTextForm() call?
TestMappingCustomArrayOfArrayUnmarshalTextForm() calls 1 function(s): convertToOidUnmarshalText.

Analyze Your Own Codebase

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

Try Supermodel Free