TestBindUriError() — gin Function Reference
Architecture documentation for the TestBindUriError() function in githubapi_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD cbcacda3_8dce_9cde_d6c4_c5c12a19fdea["TestBindUriError()"] 851931d7_59a3_9c02_f8d4_6771ae5af6e6["githubapi_test.go"] cbcacda3_8dce_9cde_d6c4_c5c12a19fdea -->|defined in| 851931d7_59a3_9c02_f8d4_6771ae5af6e6 3a892a12_f532_bb8c_bb71_193635cb2f99["exampleFromPath()"] cbcacda3_8dce_9cde_d6c4_c5c12a19fdea -->|calls| 3a892a12_f532_bb8c_bb71_193635cb2f99 style cbcacda3_8dce_9cde_d6c4_c5c12a19fdea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
githubapi_test.go lines 334–349
func TestBindUriError(t *testing.T) {
DefaultWriter = os.Stdout
router := New()
type Member struct {
Number string `uri:"num" binding:"required,uuid"`
}
router.Handle(http.MethodGet, "/new/rest/:num", func(c *Context) {
var m Member
require.Error(t, c.BindUri(&m))
})
path1, _ := exampleFromPath("/new/rest/:num")
w1 := PerformRequest(router, http.MethodGet, path1)
assert.Equal(t, http.StatusBadRequest, w1.Code)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestBindUriError() do?
TestBindUriError() is a function in the gin codebase, defined in githubapi_test.go.
Where is TestBindUriError() defined?
TestBindUriError() is defined in githubapi_test.go at line 334.
What does TestBindUriError() call?
TestBindUriError() calls 1 function(s): exampleFromPath.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free