Home / Function/ testQueryBindingFail() — gin Function Reference

testQueryBindingFail() — gin Function Reference

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

Function go RequestBinding FormBinding calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  10d98d4b_bbd1_8022_cee0_2766fdca7d70["testQueryBindingFail()"]
  314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"]
  10d98d4b_bbd1_8022_cee0_2766fdca7d70 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a
  d478c2b1_0b59_d5c6_e076_c4cc3d19fa2a["TestBindingQueryFail()"]
  d478c2b1_0b59_d5c6_e076_c4cc3d19fa2a -->|calls| 10d98d4b_bbd1_8022_cee0_2766fdca7d70
  b0e8f5f5_01c6_0991_3cc2_735acba50218["TestBindingQueryFail2()"]
  b0e8f5f5_01c6_0991_3cc2_735acba50218 -->|calls| 10d98d4b_bbd1_8022_cee0_2766fdca7d70
  aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"]
  10d98d4b_bbd1_8022_cee0_2766fdca7d70 -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e
  style 10d98d4b_bbd1_8022_cee0_2766fdca7d70 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 1191–1202

func testQueryBindingFail(t *testing.T, method, path, badPath, body, badBody string) {
	b := Query
	assert.Equal(t, "query", b.Name())

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

Subdomains

Frequently Asked Questions

What does testQueryBindingFail() do?
testQueryBindingFail() is a function in the gin codebase, defined in binding/binding_test.go.
Where is testQueryBindingFail() defined?
testQueryBindingFail() is defined in binding/binding_test.go at line 1191.
What does testQueryBindingFail() call?
testQueryBindingFail() calls 1 function(s): requestWithBody.
What calls testQueryBindingFail()?
testQueryBindingFail() is called by 2 function(s): TestBindingQueryFail, TestBindingQueryFail2.

Analyze Your Own Codebase

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

Try Supermodel Free