TestGithubAPI() — gin Function Reference
Architecture documentation for the TestGithubAPI() function in githubapi_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 402e91d6_1dc1_1679_a526_c5dc3a682eb4["TestGithubAPI()"] c6834f9f_4d6e_fbf6_43eb_45c49df8552c["githubConfigRouter()"] 402e91d6_1dc1_1679_a526_c5dc3a682eb4 -->|calls| c6834f9f_4d6e_fbf6_43eb_45c49df8552c 0f251ec6_14b4_8106_498e_821d4e2701cd["exampleFromPath()"] 402e91d6_1dc1_1679_a526_c5dc3a682eb4 -->|calls| 0f251ec6_14b4_8106_498e_821d4e2701cd style 402e91d6_1dc1_1679_a526_c5dc3a682eb4 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
Source
Frequently Asked Questions
What does TestGithubAPI() do?
TestGithubAPI() is a function in the gin codebase.
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