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