Home / Function/ testFormBindingIgnoreField() — gin Function Reference

testFormBindingIgnoreField() — gin Function Reference

Architecture documentation for the testFormBindingIgnoreField() function in binding_test.go from the gin codebase.

Function go RequestBinding FormBinding calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  bf64a447_8911_847a_06aa_294771e82fe3["testFormBindingIgnoreField()"]
  314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"]
  bf64a447_8911_847a_06aa_294771e82fe3 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a
  3625880c_dc58_c753_784e_75798439fbbc["TestFormBindingIgnoreField()"]
  3625880c_dc58_c753_784e_75798439fbbc -->|calls| bf64a447_8911_847a_06aa_294771e82fe3
  aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"]
  bf64a447_8911_847a_06aa_294771e82fe3 -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e
  style bf64a447_8911_847a_06aa_294771e82fe3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 1054–1067

func testFormBindingIgnoreField(t *testing.T, method, path, badPath, body, badBody string) {
	b := Form
	assert.Equal(t, "form", b.Name())

	obj := FooStructForIgnoreFormTag{}
	req := requestWithBody(method, path, body)
	if method == http.MethodPost {
		req.Header.Add("Content-Type", MIMEPOSTForm)
	}
	err := b.Bind(req, &obj)
	require.NoError(t, err)

	assert.Nil(t, obj.Foo)
}

Subdomains

Frequently Asked Questions

What does testFormBindingIgnoreField() do?
testFormBindingIgnoreField() is a function in the gin codebase, defined in binding/binding_test.go.
Where is testFormBindingIgnoreField() defined?
testFormBindingIgnoreField() is defined in binding/binding_test.go at line 1054.
What does testFormBindingIgnoreField() call?
testFormBindingIgnoreField() calls 1 function(s): requestWithBody.
What calls testFormBindingIgnoreField()?
testFormBindingIgnoreField() is called by 1 function(s): TestFormBindingIgnoreField.

Analyze Your Own Codebase

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

Try Supermodel Free