Home / Function/ TestMappingCustomArrayForm() — gin Function Reference

TestMappingCustomArrayForm() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 704–714

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

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

Domain

Subdomains

Calls

Frequently Asked Questions

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