TestWithHttptestWithAutoSelectedPort() — gin Function Reference
Architecture documentation for the TestWithHttptestWithAutoSelectedPort() function in gin_integration_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 7c90cfb9_4313_b353_f509_03aaf65b5a58["TestWithHttptestWithAutoSelectedPort()"] 076d326a_acfa_c808_1141_d1324fc6e43a["gin_integration_test.go"] 7c90cfb9_4313_b353_f509_03aaf65b5a58 -->|defined in| 076d326a_acfa_c808_1141_d1324fc6e43a 28a99f08_7707_75d8_4467_709023cd3fc2["testRequest()"] 7c90cfb9_4313_b353_f509_03aaf65b5a58 -->|calls| 28a99f08_7707_75d8_4467_709023cd3fc2 style 7c90cfb9_4313_b353_f509_03aaf65b5a58 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin_integration_test.go lines 382–390
func TestWithHttptestWithAutoSelectedPort(t *testing.T) {
router := New()
router.GET("/example", func(c *Context) { c.String(http.StatusOK, "it worked") })
ts := httptest.NewServer(router)
defer ts.Close()
testRequest(t, ts.URL+"/example")
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does TestWithHttptestWithAutoSelectedPort() do?
TestWithHttptestWithAutoSelectedPort() is a function in the gin codebase, defined in gin_integration_test.go.
Where is TestWithHttptestWithAutoSelectedPort() defined?
TestWithHttptestWithAutoSelectedPort() is defined in gin_integration_test.go at line 382.
What does TestWithHttptestWithAutoSelectedPort() call?
TestWithHttptestWithAutoSelectedPort() calls 1 function(s): testRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free