Home / Function/ testFormBindingForTimeNotUnixFormat() — gin Function Reference

testFormBindingForTimeNotUnixFormat() — gin Function Reference

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

Function go RequestBinding FormBinding calls 1 called by 2

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

binding/binding_test.go lines 982–998

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

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

Subdomains

Frequently Asked Questions

What does testFormBindingForTimeNotUnixFormat() do?
testFormBindingForTimeNotUnixFormat() is a function in the gin codebase, defined in binding/binding_test.go.
Where is testFormBindingForTimeNotUnixFormat() defined?
testFormBindingForTimeNotUnixFormat() is defined in binding/binding_test.go at line 982.
What does testFormBindingForTimeNotUnixFormat() call?
testFormBindingForTimeNotUnixFormat() calls 1 function(s): requestWithBody.
What calls testFormBindingForTimeNotUnixFormat()?
testFormBindingForTimeNotUnixFormat() 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