Home / Function/ TestMappingCustomSliceStopsWhenError() — gin Function Reference

TestMappingCustomSliceStopsWhenError() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 638–645

func TestMappingCustomSliceStopsWhenError(t *testing.T) {
	var s struct {
		FileData customPath `form:"path"`
	}
	err := mappingByPtr(&s, formSource{"path": {"invalid"}}, "form")
	require.ErrorContains(t, err, "invalid format")
	require.Empty(t, s.FileData)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free