Home / Function/ TestMappingCustomSliceOfSliceUri() — gin Function Reference

TestMappingCustomSliceOfSliceUri() — gin Function Reference

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

Entity Profile

Relationship Graph

Source Code

binding/form_mapping_test.go lines 647–654

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

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free