TestGithubAPI() — gin Function Reference
Architecture documentation for the TestGithubAPI() function in githubapi_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3["TestGithubAPI()"] 851931d7_59a3_9c02_f8d4_6771ae5af6e6["githubapi_test.go"] cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3 -->|defined in| 851931d7_59a3_9c02_f8d4_6771ae5af6e6 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98["githubConfigRouter()"] cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3 -->|calls| 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 3a892a12_f532_bb8c_bb71_193635cb2f99["exampleFromPath()"] cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3 -->|calls| 3a892a12_f532_bb8c_bb71_193635cb2f99 style cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
githubapi_test.go lines 387–403
func TestGithubAPI(t *testing.T) {
DefaultWriter = os.Stdout
router := New()
githubConfigRouter(router)
for _, route := range githubAPI {
path, values := exampleFromPath(route.path)
w := PerformRequest(router, route.method, path)
// TEST
assert.Contains(t, w.Body.String(), "\"status\":\"good\"")
for _, value := range values {
str := fmt.Sprintf("\"%s\":\"%s\"", value.Key, value.Value)
assert.Contains(t, w.Body.String(), str)
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestGithubAPI() do?
TestGithubAPI() is a function in the gin codebase, defined in githubapi_test.go.
Where is TestGithubAPI() defined?
TestGithubAPI() is defined in githubapi_test.go at line 387.
What does TestGithubAPI() call?
TestGithubAPI() calls 2 function(s): exampleFromPath, githubConfigRouter.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free