TestPATCH() — gin Function Reference
Architecture documentation for the TestPATCH() function in gins_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD b4b8cea3_f8da_7382_aafe_63d5931dde5f["TestPATCH()"] 79139b72_4aa3_e743_29b2_537065ba4bec["gins_test.go"] b4b8cea3_f8da_7382_aafe_63d5931dde5f -->|defined in| 79139b72_4aa3_e743_29b2_537065ba4bec style b4b8cea3_f8da_7382_aafe_63d5931dde5f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ginS/gins_test.go lines 73–84
func TestPATCH(t *testing.T) {
PATCH("/patch", func(c *gin.Context) {
c.String(http.StatusOK, "patched")
})
req := httptest.NewRequest(http.MethodPatch, "/patch", nil)
w := httptest.NewRecorder()
engine().ServeHTTP(w, req)
assert.Equal(t, http.StatusOK, w.Code)
assert.Equal(t, "patched", w.Body.String())
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestPATCH() do?
TestPATCH() is a function in the gin codebase, defined in ginS/gins_test.go.
Where is TestPATCH() defined?
TestPATCH() is defined in ginS/gins_test.go at line 73.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free