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

Method ForEachPath

opensca/model/dep.go:324–326  ·  view source on GitHub ↗

ForEachPath 遍历依赖图路径

(do func(p, n *DepGraph) bool)

Source from the content-addressed store, hash-verified

322
323// ForEachPath 遍历依赖图路径
324func (dep *DepGraph) ForEachPath(do func(p, n *DepGraph) bool) {
325 dep.ForEach(false, true, false, do)
326}
327
328// ForEachNode 遍历依赖图节点
329func (dep *DepGraph) ForEachNode(do func(p, n *DepGraph) bool) {

Callers 5

mainFunction · 0.95
ParsePackageJsonWithNodeFunction · 0.95
FlushMethod · 0.95
inheritModulesFunction · 0.80

Calls 1

ForEachMethod · 0.95

Tested by

no test coverage detected