MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / ImportPath

Method ImportPath

opensca/sca/java/pom.go:293–306  ·  view source on GitHub ↗

ImportPath 引入路径

()

Source from the content-addressed store, hash-verified

291
292// ImportPath 引入路径
293func (dep PomDependency) ImportPath() []PomDependency {
294 paths := []PomDependency{dep}
295 pom := dep.Define
296 pomset := map[*Pom]bool{}
297 for pom != nil {
298 if pomset[pom] {
299 break
300 }
301 pomset[pom] = true
302 paths = append(paths, pom.PomDependency)
303 pom = pom.Define
304 }
305 return paths
306}
307
308// ImportPathStack 引入路径栈
309func (dep PomDependency) ImportPathStack() string {

Callers 1

ImportPathStackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected