Home / Function/ TestMappingStructField() — gin Function Reference

TestMappingStructField() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/form_mapping_test.go lines 432–442

func TestMappingStructField(t *testing.T) {
	var s struct {
		J struct {
			I int
		}
	}

	err := mappingByPtr(&s, formSource{"J": {`{"I": 9}`}}, "form")
	require.NoError(t, err)
	assert.Equal(t, 9, s.J.I)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free