TestLiteralColonWithRun() — gin Function Reference
Architecture documentation for the TestLiteralColonWithRun() function in gin_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 61a37f3a_d8fc_5ecc_d543_5fa91a1940eb["TestLiteralColonWithRun()"] 5d6e7276_feeb_b8e2_30e8_0ae0827740a5["gin_test.go"] 61a37f3a_d8fc_5ecc_d543_5fa91a1940eb -->|defined in| 5d6e7276_feeb_b8e2_30e8_0ae0827740a5 style 61a37f3a_d8fc_5ecc_d543_5fa91a1940eb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_test.go lines 990–1007
func TestLiteralColonWithRun(t *testing.T) {
SetMode(TestMode)
router := New()
router.GET(`/test\:action`, func(c *Context) {
c.JSON(http.StatusOK, H{"path": "literal_colon"})
})
router.updateRouteTrees()
w := httptest.NewRecorder()
req, _ := http.NewRequest(http.MethodGet, "/test:action", nil)
router.ServeHTTP(w, req)
assert.Equal(t, http.StatusOK, w.Code)
assert.Contains(t, w.Body.String(), "literal_colon")
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestLiteralColonWithRun() do?
TestLiteralColonWithRun() is a function in the gin codebase, defined in gin_test.go.
Where is TestLiteralColonWithRun() defined?
TestLiteralColonWithRun() is defined in gin_test.go at line 990.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free