testRouteNotOK() — gin Function Reference
Architecture documentation for the testRouteNotOK() function in routes_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD fd8a5e7a_4b0a_5cc7_43af_5f25ca192e76["testRouteNotOK()"] b618725a_0270_30ec_8e40_c123565d4842["TestRouteNotOK()"] b618725a_0270_30ec_8e40_c123565d4842 -->|calls| fd8a5e7a_4b0a_5cc7_43af_5f25ca192e76 69c2add5_555a_3d82_a4e7_993886631a2c["PerformRequest()"] fd8a5e7a_4b0a_5cc7_43af_5f25ca192e76 -->|calls| 69c2add5_555a_3d82_a4e7_993886631a2c style fd8a5e7a_4b0a_5cc7_43af_5f25ca192e76 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
routes_test.go lines 55–66
func testRouteNotOK(method string, t *testing.T) {
passed := false
router := New()
router.Handle(method, "/test_2", func(c *Context) {
passed = true
})
w := PerformRequest(router, method, "/test")
assert.False(t, passed)
assert.Equal(t, http.StatusNotFound, w.Code)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does testRouteNotOK() do?
testRouteNotOK() is a function in the gin codebase.
What does testRouteNotOK() call?
testRouteNotOK() calls 1 function(s): PerformRequest.
What calls testRouteNotOK()?
testRouteNotOK() is called by 1 function(s): TestRouteNotOK.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free