TestValidationFails() — gin Function Reference
Architecture documentation for the TestValidationFails() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 80717bd7_4c40_9554_26da_ffc3916a5db1["TestValidationFails()"] 314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"] 80717bd7_4c40_9554_26da_ffc3916a5db1 -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a aebd0564_565b_ba1b_7f92_4baaca0e7b7e["requestWithBody()"] 80717bd7_4c40_9554_26da_ffc3916a5db1 -->|calls| aebd0564_565b_ba1b_7f92_4baaca0e7b7e style 80717bd7_4c40_9554_26da_ffc3916a5db1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 750–755
func TestValidationFails(t *testing.T) {
var obj FooStruct
req := requestWithBody(http.MethodPost, "/", `{"bar": "foo"}`)
err := JSON.Bind(req, &obj)
require.Error(t, err)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestValidationFails() do?
TestValidationFails() is a function in the gin codebase, defined in binding/binding_test.go.
Where is TestValidationFails() defined?
TestValidationFails() is defined in binding/binding_test.go at line 750.
What does TestValidationFails() call?
TestValidationFails() calls 1 function(s): requestWithBody.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free