Home / Function/ TestMappingCustomSliceOfSliceForm() — gin Function Reference

TestMappingCustomSliceOfSliceForm() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  75dae8d2_631f_192a_a324_daf1d65596b1["TestMappingCustomSliceOfSliceForm()"]
  36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"]
  75dae8d2_631f_192a_a324_daf1d65596b1 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82
  style 75dae8d2_631f_192a_a324_daf1d65596b1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 656–663

func TestMappingCustomSliceOfSliceForm(t *testing.T) {
	var s struct {
		FileData []customPath `form:"path" collection_format:"csv"`
	}
	err := mappingByPtr(&s, formSource{"path": {"bar/foo,bar/foo/spam"}}, "form")
	require.NoError(t, err)
	assert.Equal(t, []customPath{{"bar", "foo"}, {"bar", "foo", "spam"}}, s.FileData)
}

Subdomains

Frequently Asked Questions

What does TestMappingCustomSliceOfSliceForm() do?
TestMappingCustomSliceOfSliceForm() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomSliceOfSliceForm() defined?
TestMappingCustomSliceOfSliceForm() is defined in binding/form_mapping_test.go at line 656.

Analyze Your Own Codebase

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

Try Supermodel Free