Home / Function/ TestMappingCustomSliceOfSliceUnmarshalTextDefault() — gin Function Reference

TestMappingCustomSliceOfSliceUnmarshalTextDefault() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 914–921

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

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free