Home / Function/ testQueryBindingBoolFail() — gin Function Reference

testQueryBindingBoolFail() — gin Function Reference

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

Function go DataBinding Mappers calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  b23f6d3f_6be3_f75b_6346_7eb0d97e72da["testQueryBindingBoolFail()"]
  c174df48_c121_69fa_338b_5bf1016d4141["TestBindingQueryBoolFail()"]
  c174df48_c121_69fa_338b_5bf1016d4141 -->|calls| b23f6d3f_6be3_f75b_6346_7eb0d97e72da
  2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"]
  b23f6d3f_6be3_f75b_6346_7eb0d97e72da -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604
  style b23f6d3f_6be3_f75b_6346_7eb0d97e72da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 1204–1215

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

	obj := FooStructForBoolType{}
	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 testQueryBindingBoolFail() do?
testQueryBindingBoolFail() is a function in the gin codebase.
What does testQueryBindingBoolFail() call?
testQueryBindingBoolFail() calls 1 function(s): requestWithBody.
What calls testQueryBindingBoolFail()?
testQueryBindingBoolFail() is called by 1 function(s): TestBindingQueryBoolFail.

Analyze Your Own Codebase

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

Try Supermodel Free