TestStatic() — gin Function Reference
Architecture documentation for the TestStatic() function in gins_test.go from the gin codebase.
Entity Profile
Relationship Graph
Source Code
ginS/gins_test.go lines 227–235
func TestStatic(t *testing.T) {
Static("/static-dir", "../testdata")
req := httptest.NewRequest(http.MethodGet, "/static-dir/test_file.txt", nil)
w := httptest.NewRecorder()
engine().ServeHTTP(w, req)
assert.Equal(t, http.StatusOK, w.Code)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free