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

Function NewDepGraphMap

opensca/model/dep.go:339–344  ·  view source on GitHub ↗
(key func(...string) string, store func(...string) *DepGraph)

Source from the content-addressed store, hash-verified

337}
338
339func NewDepGraphMap(key func(...string) string, store func(...string) *DepGraph) *DepGraphMap {
340 if key == nil {
341 key = func(s ...string) string { return strings.Join(s, ":") }
342 }
343 return &DepGraphMap{key: key, store: store, m: map[string]*DepGraph{}}
344}
345
346func (s *DepGraphMap) Range(do func(k string, v *DepGraph) bool) {
347 for k, v := range s.m {

Callers 15

ParsePipfileFunction · 0.92
ParsePipfileLockFunction · 0.92
GoModGraphFunction · 0.92
ParseGroovyFunction · 0.92
ParseGradleFunction · 0.92
GradleTreeFunction · 0.92
parseCdxBomFunction · 0.92
parseBomSWDocFunction · 0.92
ParseSpdxFunction · 0.92
parseSpdxDocFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected