Home / Function/ TestMappingCustomArrayOfArrayUnmarshalTextDefault() — gin Function Reference

TestMappingCustomArrayOfArrayUnmarshalTextDefault() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e443d909_2018_9b8d_475f_4a7f79f1c2c4["TestMappingCustomArrayOfArrayUnmarshalTextDefault()"]
  82f141a9_cfc1_da27_873f_93a2a09d460e["convertToOidUnmarshalText()"]
  e443d909_2018_9b8d_475f_4a7f79f1c2c4 -->|calls| 82f141a9_cfc1_da27_873f_93a2a09d460e
  style e443d909_2018_9b8d_475f_4a7f79f1c2c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 990–1000

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

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

Domain

Subdomains

Frequently Asked Questions

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