testRouteNotOK() — gin Function Reference
Architecture documentation for the testRouteNotOK() function in routes_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD cea87d1a_5469_a91a_3013_d79ad4ce4136["testRouteNotOK()"] 45929e18_70ca_7c55_01e0_596be99dd824["routes_test.go"] cea87d1a_5469_a91a_3013_d79ad4ce4136 -->|defined in| 45929e18_70ca_7c55_01e0_596be99dd824 58f074bb_faed_b48e_2078_51726137a80a["TestRouteNotOK()"] 58f074bb_faed_b48e_2078_51726137a80a -->|calls| cea87d1a_5469_a91a_3013_d79ad4ce4136 9785c910_0083_377a_37b6_92b299e0e32d["PerformRequest()"] cea87d1a_5469_a91a_3013_d79ad4ce4136 -->|calls| 9785c910_0083_377a_37b6_92b299e0e32d style cea87d1a_5469_a91a_3013_d79ad4ce4136 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does testRouteNotOK() do?
testRouteNotOK() is a function in the gin codebase, defined in routes_test.go.
Where is testRouteNotOK() defined?
testRouteNotOK() is defined in routes_test.go at line 55.
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