Home / Function/ testFormBindingInvalidName2() — gin Function Reference

testFormBindingInvalidName2() — gin Function Reference

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

Function go DataBinding Mappers calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  5008182a_0b52_d7b1_3ed7_1d90194e92f4["testFormBindingInvalidName2()"]
  c126d8cd_137d_9720_f1cd_986f6ee44ca3["TestBindingFormInvalidName2()"]
  c126d8cd_137d_9720_f1cd_986f6ee44ca3 -->|calls| 5008182a_0b52_d7b1_3ed7_1d90194e92f4
  2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"]
  5008182a_0b52_d7b1_3ed7_1d90194e92f4 -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604
  style 5008182a_0b52_d7b1_3ed7_1d90194e92f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 1088–1104

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

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

	obj = InvalidNameMapType{}
	req = requestWithBody(method, badPath, badBody)
	err = JSON.Bind(req, &obj)
	require.Error(t, err)
}

Domain

Subdomains

Frequently Asked Questions

What does testFormBindingInvalidName2() do?
testFormBindingInvalidName2() is a function in the gin codebase.
What does testFormBindingInvalidName2() call?
testFormBindingInvalidName2() calls 1 function(s): requestWithBody.
What calls testFormBindingInvalidName2()?
testFormBindingInvalidName2() is called by 1 function(s): TestBindingFormInvalidName2.

Analyze Your Own Codebase

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

Try Supermodel Free