testFormBindingInvalidName() — gin Function Reference
Architecture documentation for the testFormBindingInvalidName() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD fcedda8c_4647_68fc_8813_b30a2fb35e89["testFormBindingInvalidName()"] 314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"] fcedda8c_4647_68fc_8813_b30a2fb35e89 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a 6fa7e38c_9203_5020_43bd_d592bb77e316["TestBindingFormInvalidName()"] 6fa7e38c_9203_5020_43bd_d592bb77e316 -->|calls| fcedda8c_4647_68fc_8813_b30a2fb35e89 aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"] fcedda8c_4647_68fc_8813_b30a2fb35e89 -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e style fcedda8c_4647_68fc_8813_b30a2fb35e89 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 1069–1086
func testFormBindingInvalidName(t *testing.T, method, path, badPath, body, badBody string) {
b := Form
assert.Equal(t, "form", b.Name())
obj := InvalidNameType{}
req := requestWithBody(method, path, body)
if method == http.MethodPost {
req.Header.Add("Content-Type", MIMEPOSTForm)
}
err := b.Bind(req, &obj)
require.NoError(t, err)
assert.Empty(t, obj.TestName)
obj = InvalidNameType{}
req = requestWithBody(method, badPath, badBody)
err = JSON.Bind(req, &obj)
require.Error(t, err)
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does testFormBindingInvalidName() do?
testFormBindingInvalidName() is a function in the gin codebase, defined in binding/binding_test.go.
Where is testFormBindingInvalidName() defined?
testFormBindingInvalidName() is defined in binding/binding_test.go at line 1069.
What does testFormBindingInvalidName() call?
testFormBindingInvalidName() calls 1 function(s): requestWithBody.
What calls testFormBindingInvalidName()?
testFormBindingInvalidName() is called by 1 function(s): TestBindingFormInvalidName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free