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 RequestBinding FormBinding calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  b0a8f42d_6878_f6e9_8b95_f841dc295a1e["testQueryBindingBoolFail()"]
  314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"]
  b0a8f42d_6878_f6e9_8b95_f841dc295a1e -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a
  622d311a_5d5e_ef17_3fdd_c147d69b95a9["TestBindingQueryBoolFail()"]
  622d311a_5d5e_ef17_3fdd_c147d69b95a9 -->|calls| b0a8f42d_6878_f6e9_8b95_f841dc295a1e
  aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"]
  b0a8f42d_6878_f6e9_8b95_f841dc295a1e -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e
  style b0a8f42d_6878_f6e9_8b95_f841dc295a1e 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)
}

Subdomains

Frequently Asked Questions

What does testQueryBindingBoolFail() do?
testQueryBindingBoolFail() is a function in the gin codebase, defined in binding/binding_test.go.
Where is testQueryBindingBoolFail() defined?
testQueryBindingBoolFail() is defined in binding/binding_test.go at line 1204.
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