Home / Function/ testFormBindingForTimeNotFormat() — gin Function Reference

testFormBindingForTimeNotFormat() — gin Function Reference

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

Function go RequestBinding FormBinding calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  1659db88_c1c8_9dd2_1728_fe9afbd4d567["testFormBindingForTimeNotFormat()"]
  314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"]
  1659db88_c1c8_9dd2_1728_fe9afbd4d567 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a
  15be6698_c30d_961f_f7aa_8ec3e6c4e801["TestBindingFormForTime()"]
  15be6698_c30d_961f_f7aa_8ec3e6c4e801 -->|calls| 1659db88_c1c8_9dd2_1728_fe9afbd4d567
  d08a46ef_c03c_f22a_c5d3_1b2bb5a48585["TestBindingFormForTime2()"]
  d08a46ef_c03c_f22a_c5d3_1b2bb5a48585 -->|calls| 1659db88_c1c8_9dd2_1728_fe9afbd4d567
  aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"]
  1659db88_c1c8_9dd2_1728_fe9afbd4d567 -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e
  style 1659db88_c1c8_9dd2_1728_fe9afbd4d567 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 1000–1016

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

	obj := FooStructForTimeTypeNotFormat{}
	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 = FooStructForTimeTypeNotFormat{}
	req = requestWithBody(method, badPath, badBody)
	err = JSON.Bind(req, &obj)
	require.Error(t, err)
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free