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 DataBinding Mappers calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  586d7c3a_3a63_3aef_90aa_0c264b47d063["testQueryBindingFail()"]
  5959975a_4f16_7475_d1a6_a87e338afb35["TestBindingQueryFail()"]
  5959975a_4f16_7475_d1a6_a87e338afb35 -->|calls| 586d7c3a_3a63_3aef_90aa_0c264b47d063
  9dabf877_af5f_30f0_2b7e_86f009028f8e["TestBindingQueryFail2()"]
  9dabf877_af5f_30f0_2b7e_86f009028f8e -->|calls| 586d7c3a_3a63_3aef_90aa_0c264b47d063
  2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"]
  586d7c3a_3a63_3aef_90aa_0c264b47d063 -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604
  style 586d7c3a_3a63_3aef_90aa_0c264b47d063 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)
}

Domain

Subdomains

Frequently Asked Questions

What does testQueryBindingFail() do?
testQueryBindingFail() is a function in the gin codebase.
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