TestWithOptionFunc() — gin Function Reference
Architecture documentation for the TestWithOptionFunc() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 756abfac_ef43_ca1e_dcf2_17294272e457["TestWithOptionFunc()"] 5d6e7276_feeb_b8e2_30e8_0ae0827740a5["gin_test.go"] 756abfac_ef43_ca1e_dcf2_17294272e457 -->|defined in| 5d6e7276_feeb_b8e2_30e8_0ae0827740a5 ba03a3c9_88b0_fc50_bad5_933af8b9c3ed["assertRoutePresent()"] 756abfac_ef43_ca1e_dcf2_17294272e457 -->|calls| ba03a3c9_88b0_fc50_bad5_933af8b9c3ed style 756abfac_ef43_ca1e_dcf2_17294272e457 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 938–953
func TestWithOptionFunc(t *testing.T) {
r := New()
r.With(func(e *Engine) {
e.GET("/test1", handlerTest1)
e.GET("/test2", handlerTest2)
e.Use(func(c *Context) {
c.Next()
})
})
routes := r.Routes()
assertRoutePresent(t, routes, RouteInfo{Path: "/test1", Method: http.MethodGet, Handler: "github.com/gin-gonic/gin.handlerTest1"})
assertRoutePresent(t, routes, RouteInfo{Path: "/test2", Method: http.MethodGet, Handler: "github.com/gin-gonic/gin.handlerTest2"})
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestWithOptionFunc() do?
TestWithOptionFunc() is a function in the gin codebase, defined in gin_test.go.
Where is TestWithOptionFunc() defined?
TestWithOptionFunc() is defined in gin_test.go at line 938.
What does TestWithOptionFunc() call?
TestWithOptionFunc() calls 1 function(s): assertRoutePresent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free