Home / Function/ TestMappingCustomSliceOfSliceUnmarshalTextForm() — gin Function Reference

TestMappingCustomSliceOfSliceUnmarshalTextForm() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 905–912

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

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free