genLongPaths() — gin Function Reference
Architecture documentation for the genLongPaths() function in path_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 242de60c_3b16_6b2d_d7cb_ac48ea57113c["genLongPaths()"] b533967c_d510_b36e_3d17_b3b896fbdfe2["path_test.go"] 242de60c_3b16_6b2d_d7cb_ac48ea57113c -->|defined in| b533967c_d510_b36e_3d17_b3b896fbdfe2 6dd85f77_1d2d_f596_82b5_66b8415cbe5a["TestPathCleanLong()"] 6dd85f77_1d2d_f596_82b5_66b8415cbe5a -->|calls| 242de60c_3b16_6b2d_d7cb_ac48ea57113c 4eebe347_d207_76c8_97f7_def0a3d25cec["BenchmarkPathCleanLong()"] 4eebe347_d207_76c8_97f7_def0a3d25cec -->|calls| 242de60c_3b16_6b2d_d7cb_ac48ea57113c style 242de60c_3b16_6b2d_d7cb_ac48ea57113c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
path_test.go lines 104–124
func genLongPaths() (testPaths []cleanPathTest) {
for i := 1; i <= 1234; i++ {
ss := strings.Repeat("a", i)
correctPath := "/" + ss
testPaths = append(testPaths, cleanPathTest{
path: correctPath,
result: correctPath,
}, cleanPathTest{
path: ss,
result: correctPath,
}, cleanPathTest{
path: "//" + ss,
result: correctPath,
}, cleanPathTest{
path: "/" + ss + "/b/..",
result: correctPath,
})
}
return
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does genLongPaths() do?
genLongPaths() is a function in the gin codebase, defined in path_test.go.
Where is genLongPaths() defined?
genLongPaths() is defined in path_test.go at line 104.
What calls genLongPaths()?
genLongPaths() is called by 2 function(s): BenchmarkPathCleanLong, TestPathCleanLong.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free