Home / Function/ testFormBindingForTimeFailFormat() — gin Function Reference

testFormBindingForTimeFailFormat() — gin Function Reference

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

Function go DataBinding Mappers calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  ee3ffa1d_a4a6_b008_0404_1b7b06e65bd1["testFormBindingForTimeFailFormat()"]
  57bbb106_4412_fea3_0743_68d0b7ed515a["TestBindingFormForTime()"]
  57bbb106_4412_fea3_0743_68d0b7ed515a -->|calls| ee3ffa1d_a4a6_b008_0404_1b7b06e65bd1
  16321679_85ac_7e6a_e9a2_dbb59cde6359["TestBindingFormForTime2()"]
  16321679_85ac_7e6a_e9a2_dbb59cde6359 -->|calls| ee3ffa1d_a4a6_b008_0404_1b7b06e65bd1
  2899e942_a23d_574e_8d47_d28e895c2604["requestWithBody()"]
  ee3ffa1d_a4a6_b008_0404_1b7b06e65bd1 -->|calls| 2899e942_a23d_574e_8d47_d28e895c2604
  style ee3ffa1d_a4a6_b008_0404_1b7b06e65bd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 1018–1034

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

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

Domain

Subdomains

Frequently Asked Questions

What does testFormBindingForTimeFailFormat() do?
testFormBindingForTimeFailFormat() is a function in the gin codebase.
What does testFormBindingForTimeFailFormat() call?
testFormBindingForTimeFailFormat() calls 1 function(s): requestWithBody.
What calls testFormBindingForTimeFailFormat()?
testFormBindingForTimeFailFormat() 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